@github/text-expander-element
Advanced tools
Comparing version 2.2.2 to 2.3.0
@@ -413,2 +413,3 @@ const ctrlBindings = !!navigator.userAgent.match(/Macintosh/); | ||
this.match = null; | ||
this.expander.dispatchEvent(new CustomEvent('text-expander-committed', { cancelable: false, detail: { input: this.input } })); | ||
} | ||
@@ -415,0 +416,0 @@ onBlur() { |
@@ -243,2 +243,3 @@ import Combobox from '@github/combobox-nav'; | ||
this.match = null; | ||
this.expander.dispatchEvent(new CustomEvent('text-expander-committed', { cancelable: false, detail: { input: this.input } })); | ||
} | ||
@@ -245,0 +246,0 @@ onBlur() { |
@@ -96,2 +96,3 @@ import Combobox from '@github/combobox-nav'; | ||
this.match = null; | ||
this.expander.dispatchEvent(new CustomEvent('text-expander-committed', { cancelable: false, detail: { input: this.input } })); | ||
} | ||
@@ -98,0 +99,0 @@ onBlur() { |
{ | ||
"name": "@github/text-expander-element", | ||
"version": "2.2.2", | ||
"version": "2.3.0", | ||
"description": "Activates a suggestion menu to expand text snippets as you type.", | ||
@@ -37,2 +37,3 @@ "repository": "github/text-expander-element", | ||
"chai": "^4.3.4", | ||
"chromium": "^3.0.3", | ||
"eslint": "^7.24.0", | ||
@@ -39,0 +40,0 @@ "eslint-plugin-github": "^4.1.3", |
@@ -94,2 +94,14 @@ # <text-expander> element | ||
**`text-expander-committed`** is fired after the underlying `input` value has been updated in the DOM. In `event.detail` you can find: | ||
- `input`: The `HTMLInputElement` or `HTMLTextAreaElement` that just had `value` changes committed to the DOM. | ||
```js | ||
const expander = document.querySelector('text-expander') | ||
expander.addEventListener('text-expander-committed', function(event) { | ||
const {input} = event.detail | ||
}) | ||
``` | ||
## Browser support | ||
@@ -96,0 +108,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
49846
1252
128
0
14