Skip to content

Commit

Permalink
fix #810
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Jul 21, 2016
1 parent 607084e commit 8b7ad58
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ class Toolbar extends Module {
}

update(range) {
if (range == null) return;
let formats = this.quill.getFormat(range);
let formats = range == null ? {} : this.quill.getFormat(range);
this.controls.forEach(function(pair) {
let [format, input] = pair;
if (input.tagName === 'SELECT') {
Expand Down

0 comments on commit 8b7ad58

Please sign in to comment.