Skip to content

Commit

Permalink
Merge pull request #1 from WiFast/fix-select-update
Browse files Browse the repository at this point in the history
Replace double quotes with escaped single quotes in the update call
  • Loading branch information
bobrafie authored Jun 24, 2016
2 parents fab4f09 + 9f566c8 commit 4632b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class Toolbar extends Module {
if (formats[format] == null) {
option = input.querySelector('option[selected]');
} else if (!Array.isArray(formats[format])) {
option = input.querySelector(`option[value="${formats[format]}"]`);
option = input.querySelector(`option[value="${formats[format].replace(/\"/g, "\'")}"]`);
}
if (option == null) {
input.value = ''; // TODO make configurable?
Expand Down

0 comments on commit 4632b83

Please sign in to comment.