mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 12:26:35 +00:00
Remove no longer needed more info backdrop workaround
This commit is contained in:
parent
41dbd6abc3
commit
feb776ec89
@ -73,13 +73,6 @@ export default new Polymer({
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
value: false,
|
value: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
_boundOnBackdropTap: {
|
|
||||||
type: Function,
|
|
||||||
value: function bindBackdropTap() {
|
|
||||||
return this._onBackdropTap.bind(this);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -121,18 +114,10 @@ export default new Polymer({
|
|||||||
|
|
||||||
dialogOpenChanged(newVal) {
|
dialogOpenChanged(newVal) {
|
||||||
if (newVal) {
|
if (newVal) {
|
||||||
this.$.dialog.backdropElement.addEventListener('click',
|
|
||||||
this._boundOnBackdropTap);
|
|
||||||
this.async(() => this._delayedDialogOpen = true, 10);
|
this.async(() => this._delayedDialogOpen = true, 10);
|
||||||
} else if (!newVal && this.stateObj) {
|
} else if (!newVal && this.stateObj) {
|
||||||
moreInfoActions.deselectEntity();
|
moreInfoActions.deselectEntity();
|
||||||
this._delayedDialogOpen = false;
|
this._delayedDialogOpen = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_onBackdropTap() {
|
|
||||||
this.$.dialog.backdropElement.removeEventListener('click',
|
|
||||||
this._boundOnBackdropTap);
|
|
||||||
this.dialogOpen = false;
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user