We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7f9be6 commit b8a6e49Copy full SHA for b8a6e49
index.js
@@ -542,7 +542,7 @@ type StyleArgs = {
542
trimFirst: boolean
543
}
544
545
-function applyStyle(button: Element, styles: {}) {
+function applyStyle(button: Element, stylesToApply: {}) {
546
const toolbar = button.closest('markdown-toolbar')
547
if (!(toolbar instanceof MarkdownToolbarElement)) return
548
@@ -560,7 +560,7 @@ function applyStyle(button: Element, styles: {}) {
560
trimFirst: false
561
562
563
- const style = {...defaults, ...styles}
+ const style = {...defaults, ...stylesToApply}
564
565
const field = toolbar.field
566
if (field) {
0 commit comments