Skip to content

Commit

Permalink
Fix options.autofocus=false being discarded (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w authored Jan 21, 2020
1 parent f841ba9 commit e89ee8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mathquill4quill.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ window.mathquill4quill = function(dependencies) {
}

function newMathquillInput() {
const autofocus = options.autofocus || true;
const autofocus = options.autofocus == null ? true : options.autofocus;
let mqInput = null;
let mqField = null;
let latexInputStyle = null;
Expand Down

0 comments on commit e89ee8b

Please sign in to comment.