Skip to content

Commit

Permalink
hide tooltips when disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen authored and Tim McClure committed Dec 12, 2016
1 parent 54ada8b commit c36d90e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/core.styl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ resets(arr)
margin: 0px
position: relative

.ql-container.ql-disabled
.ql-tooltip
visibility: hidden

.ql-clipboard
left: -100000px
height: 1px
Expand Down
1 change: 1 addition & 0 deletions core/quill.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ class Quill {

enable(enabled = true) {
this.editor.enable(enabled);
this.container.classList.toggle('ql-disabled', !enabled);
if (!enabled) {
this.blur();
}
Expand Down

0 comments on commit c36d90e

Please sign in to comment.