Skip to content

Commit

Permalink
Fix setting popover to null
Browse files Browse the repository at this point in the history
  • Loading branch information
jgerigmeyer committed Nov 11, 2024
1 parent f7deb21 commit 3e07234
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/popover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,11 @@ export function apply() {
return 'manual';
},
set(value) {
this.setAttribute('popover', value);
if (value === null) {
this.removeAttribute('popover');
} else {
this.setAttribute('popover', value);
}
},
},

Expand Down

0 comments on commit 3e07234

Please sign in to comment.