Fixed a (harmless) error in the console when clicking right from an enum drop down

This commit is contained in:
jos 2016-05-22 20:19:19 +02:00
parent b922aceb07
commit 40c1b887e7
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -2346,7 +2346,7 @@ Node.prototype.onEvent = function (event) {
}
}
else {
if (domValue) {
if (domValue && !this.enum) {
util.setEndOfContentEditable(domValue);
domValue.focus();
}