drab 6.1.2 → 6.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,6 +33,7 @@ export class Editor extends Base {
33
33
  #openChars = [];
34
34
  /** Keys that will reset the type over for keyPairs */
35
35
  #resetKeys = new Set(["ArrowUp", "ArrowDown", "Delete"]);
36
+ #inputEvent = new Event("input", { bubbles: true, cancelable: true });
36
37
  /** Characters that will be automatically closed when typed. */
37
38
  keyPairs = {
38
39
  "(": ")",
@@ -60,6 +61,7 @@ export class Editor extends Base {
60
61
  }
61
62
  set text(value) {
62
63
  this.textArea.value = value;
64
+ this.textArea.dispatchEvent(this.#inputEvent);
63
65
  }
64
66
  /** Array of `ContentElement`s derived from each `trigger`'s data attributes. */
65
67
  get #contentElements() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "drab",
3
3
  "description": "Interactivity for You",
4
- "version": "6.1.2",
4
+ "version": "6.1.3",
5
5
  "homepage": "https://drab.robino.dev",
6
6
  "license": "MIT",
7
7
  "author": {