From 3e07234dd23443b6af11f8fac553fba56d39f5a1 Mon Sep 17 00:00:00 2001 From: Jonny Gerig Meyer Date: Mon, 11 Nov 2024 10:33:22 -0500 Subject: [PATCH] Fix setting popover to null --- src/popover.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/popover.ts b/src/popover.ts index 99ede44..644217a 100644 --- a/src/popover.ts +++ b/src/popover.ts @@ -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); + } }, },