diff --git a/src/components/Popover/Popover.tsx b/src/components/Popover/Popover.tsx index fa4b6abe3df..a2bc6b982ae 100644 --- a/src/components/Popover/Popover.tsx +++ b/src/components/Popover/Popover.tsx @@ -11,14 +11,6 @@ import {CloseSource, Pane, PopoverOverlay, Section} from './components'; export {CloseSource}; -// keyof JSX.IntrinsicElements contains all elements that are valid in both HTML and SVG -// HTMLOnlyJsxIntrinsicElementsKeys only the keys of HTML elements -type FilteredKeys = {[P in keyof T]: T[P] extends U ? P : never}[keyof T]; -type HTMLOnlyJsxIntrinsicElementsKeys = FilteredKeys< - JSX.IntrinsicElements, - React.DetailedHTMLProps, HTMLElement> ->; - export interface PopoverProps { /** The content to display inside the popover */ children?: React.ReactNode; @@ -34,7 +26,7 @@ export interface PopoverProps { * The element type to wrap the activator with * @default 'div' */ - activatorWrapper?: HTMLOnlyJsxIntrinsicElementsKeys; + activatorWrapper?: string; /** Prevent automatic focus of the first field on activation */ preventAutofocus?: boolean; /** Automatically add wrap content in a section */