Skip to content

Commit

Permalink
fix updated changedProperties check to check that open old value is f…
Browse files Browse the repository at this point in the history
…alse and new value is true
  • Loading branch information
Nerwyn committed Jan 8, 2025
1 parent 286d97e commit eab9a40
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/keyboards/base-keyboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ export class BaseKeyboard extends LitElement {
}

updated(changedProperties: PropertyValues) {
if (changedProperties.get('open')) {
if (changedProperties.get('open') == false && this.open) {
waitForElement(this.shadowRoot!, 'textarea').then((textarea) => {
this.textarea = textarea as HTMLTextAreaElement;
this.textarea?.focus();
Expand Down

0 comments on commit eab9a40

Please sign in to comment.