Skip to content

Commit

Permalink
Merge pull request #10 from w99910/main
Browse files Browse the repository at this point in the history
Dispatch changes
  • Loading branch information
neSpecc authored May 28, 2024
2 parents 02538b1 + 479faff commit a80eefb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit a80eefb

Please sign in to comment.