Fix #1090: autocomplete firing on dragging or clicking a node
This commit is contained in:
parent
2cbac6fd5c
commit
60b84bb6bd
|
@ -5,6 +5,7 @@ https://github.com/josdejong/jsoneditor
|
|||
|
||||
## not yet published, version 9.0.5
|
||||
|
||||
- Fix #1090: autocomplete firing on dragging or clicking a node.
|
||||
- Fix #1096: editor crashing when passing an empty string as `name`.
|
||||
- Updated dependencies to `ajv@6.12.4`.
|
||||
|
||||
|
|
|
@ -1490,6 +1490,11 @@ treemode._showAutoComplete = function (element) {
|
|||
if (element.className.indexOf('jsoneditor-value') >= 0) jsonElementType = 'value'
|
||||
if (element.className.indexOf('jsoneditor-field') >= 0) jsonElementType = 'field'
|
||||
|
||||
if (jsonElementType === '') {
|
||||
// Unknown element field. Could be a button or something else
|
||||
return
|
||||
}
|
||||
|
||||
const self = this
|
||||
|
||||
setTimeout(() => {
|
||||
|
|
Loading…
Reference in New Issue