Skip to content

Commit

Permalink
Fixed a (harmless) error in the console when clicking right from an e…
Browse files Browse the repository at this point in the history
…num drop down
  • Loading branch information
josdejong committed May 22, 2016
1 parent b922ace commit 40c1b88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ https://github.com/josdejong/jsoneditor

- Fixed #285: an issue with the enum drop down when having defined multiple
enums in a JSON schema.
- Fixed a (harmless) error in the console when clicking right from an enum
drop down.


## 2016-05-22, version 5.5.3
Expand Down
2 changes: 1 addition & 1 deletion src/js/Node.js
Original file line number Diff line number Diff line change
Expand Up @@ -2346,7 +2346,7 @@ Node.prototype.onEvent = function (event) {
}
}
else {
if (domValue) {
if (domValue && !this.enum) {
util.setEndOfContentEditable(domValue);
domValue.focus();
}
Expand Down

0 comments on commit 40c1b88

Please sign in to comment.