Fixed not being able to move focus to a enum select box when clicking a JSON Schema warning

This commit is contained in:
jos 2017-04-15 12:21:41 +02:00
parent 0adf824f5b
commit 09c1375c84
1 changed files with 5 additions and 1 deletions

View File

@ -856,7 +856,11 @@ Node.prototype.focus = function(elementName) {
case 'value':
default:
if (dom.value && !this._hasChilds()) {
if (dom.select) {
// enum select box
dom.select.focus();
}
else if (dom.value && !this._hasChilds()) {
dom.value.focus();
util.selectContentEditable(dom.value);
}