import { useId } from 'react'; function Example() { const id = useId(); return (
{ if (event.key === 'Escape') { // Prevent closing extension popup, close only popover event.preventDefault(); event.currentTarget.hidePopover(); } }} >
{/* dropdown menu content */}
); }