Skip to content

Commit 560e56d

Browse files
committed
Update popover declaration for compatibility with Preact typings
Preact's latest typings allow setting popover to a boolean value, but this still renders `popover="true"` and "true" is an invalid value. Instead set the value to "auto" which is the default value [1]. [1] https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/popover
1 parent 1f1606d commit 560e56d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/input/SelectNext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ function SelectMain<T>({
287287
const buttonRef = useSyncedRef(elementRef);
288288
const defaultButtonId = useId();
289289
const extraProps = useMemo(
290-
() => (listboxAsPopover ? { popover: '' } : {}),
290+
() => (listboxAsPopover ? { popover: 'auto' } : {}),
291291
[listboxAsPopover],
292292
);
293293

0 commit comments

Comments
 (0)