editor: prevent error when right clicking on widget from inspector field
This commit is contained in:
parent
55502844c7
commit
14604b9d5a
1 changed files with 5 additions and 5 deletions
|
|
@ -35,12 +35,12 @@ var handleClick = function(event) {
|
|||
}
|
||||
|
||||
|
||||
if (event.type !== 'fast-right-click') {
|
||||
if (editor.inspector.focusedInput) {
|
||||
editor.inspector.onChange()
|
||||
if (!document.body.contains(eventData.target)) return
|
||||
}
|
||||
|
||||
if (editor.inspector.focusedInput) {
|
||||
editor.inspector.onChange()
|
||||
if (!document.body.contains(eventData.target)) return
|
||||
}
|
||||
if (event.type !== 'fast-right-click') {
|
||||
|
||||
if (targetWidget.getProp('type') === 'tab') {
|
||||
targetWidget.parent.setValue(targetWidget.parent.children.indexOf(targetWidget), {sync: true, send: true})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue