Skip to content

Commit

Permalink
fix(editor): Icons are activating/deactivating synchronously when hav…
Browse files Browse the repository at this point in the history
…ing multiple QEditors with :toolbar props (#8044) (#8127)
  • Loading branch information
hawkeye64 committed Dec 1, 2020
1 parent df9a2c8 commit eee7f8f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ui/src/components/editor/editor-caret.js
Expand Up @@ -228,8 +228,11 @@ export class Caret {
case void 0:
return false
default:
const state = document.queryCommandState(cmd)
return param !== void 0 ? state === param : state
if (this.hasSelection) {
const state = document.queryCommandState(cmd)
return param !== void 0 ? state === param : state
}
return false
}
}

Expand Down

0 comments on commit eee7f8f

Please sign in to comment.