forked from platypush/platypush
[UI] Modals should react on escape only if the container element is present.
This commit is contained in:
parent
6eb8b7954d
commit
202cff093f
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ export default {
|
|||
},
|
||||
|
||||
onEscape() {
|
||||
if (!this.isVisible || this.ignoreEscape)
|
||||
if (!this.isVisible || this.ignoreEscape || !this.$refs.container)
|
||||
return
|
||||
|
||||
const myZIndex = parseInt(getComputedStyle(this.$refs.container).zIndex)
|
||||
|
|
Loading…
Reference in a new issue