Fixed not being able to move focus to a enum select box when clicking a JSON Schema warning
This commit is contained in:
parent
0adf824f5b
commit
09c1375c84
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue