diff --git a/package.json b/package.json index e9d5aa1..e8efff7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@editorjs/text-variant-tune", - "version": "1.0.1", + "version": "1.0.2", "main": "dist/text-variant-tune.js", "repository": "https://github.com/editor-js/text-variant-tune", "author": "CodeX ", diff --git a/src/index.js b/src/index.js index 1f43ced..4bdfe58 100644 --- a/src/index.js +++ b/src/index.js @@ -143,6 +143,8 @@ export default class TextVariantTune { tune.classList.toggle(this.api.styles.settingsButtonActive, !isEnabled); this.variant = !isEnabled ? tune.dataset.name : ''; + + this.block.dispatchChange(); } /**