(null);
const handleClick = useCallback(() => {
try {
inputRef.current?.showPicker();
} catch {
// showPicker() may throw in some browsers — fallback to focus
inputRef.current?.focus();
}
}, []);
return (
{
if (e.key === "Enter" || e.key === " ") handleClick();
}}
>
{displayValue || placeholder || ""}
);
}