File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1+ import "@home-assistant/webawesome/dist/components/dialog/dialog" ;
2+ import { mdiClose } from "@mdi/js" ;
13import { css , html , LitElement } from "lit" ;
24import {
35 customElement ,
79 state ,
810} from "lit/decorators" ;
911import { ifDefined } from "lit/directives/if-defined" ;
10- import { mdiClose } from "@mdi/js" ;
11- import "@home-assistant/webawesome/dist/components/dialog/dialog" ;
1212import { fireEvent } from "../common/dom/fire_event" ;
1313import { haStyleScrollbar } from "../resources/styles" ;
1414import type { HomeAssistant } from "../types" ;
@@ -172,7 +172,9 @@ export class HaWaDialog extends LitElement {
172172
173173 await this . updateComplete ;
174174
175- ( this . querySelector ( "[autofocus]" ) as HTMLElement | null ) ?. focus ( ) ;
175+ requestAnimationFrame ( ( ) => {
176+ ( this . querySelector ( "[autofocus]" ) as HTMLElement | null ) ?. focus ( ) ;
177+ } ) ;
176178 } ;
177179
178180 private _handleAfterShow = ( ) => {
You can’t perform that action at this time.
0 commit comments