1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00

Fix ha-bottom-sheet closed event (#28257)

This commit is contained in:
Wendelin
2025-12-01 12:04:15 +01:00
committed by GitHub
parent 528c7727e2
commit 334e1c35e1
2 changed files with 3 additions and 2 deletions

View File

@@ -21,7 +21,8 @@ export class HaBottomSheet extends LitElement {
private _isDragging = false; private _isDragging = false;
private _handleAfterHide() { private _handleAfterHide(afterHideEvent: Event) {
afterHideEvent.stopPropagation();
this.open = false; this.open = false;
const ev = new Event("closed", { const ev = new Event("closed", {
bubbles: true, bubbles: true,

View File

@@ -248,7 +248,7 @@ export class HaGenericPicker extends LitElement {
}); });
}; };
private _hidePicker(ev) { private _hidePicker(ev: Event) {
ev.stopPropagation(); ev.stopPropagation();
if (this._newValue) { if (this._newValue) {
fireEvent(this, "value-changed", { value: this._newValue }); fireEvent(this, "value-changed", { value: this._newValue });