Skip to content

Commit

Permalink
change open prop before calling dialog show/close
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerwyn committed Jan 8, 2025
1 parent aa326f9 commit 286d97e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/universal-remote-card.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/classes/keyboard-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ export class KeyboardDialog extends LitElement {
@state() open: boolean = false;

showDialog(e: CustomEvent) {
this.open = true;
this.config = e.detail;

const dialog = this.shadowRoot?.querySelector('dialog');
if (dialog) {
this.open = true;
try {
dialog.showModal();
} catch {
Expand Down

0 comments on commit 286d97e

Please sign in to comment.