Skip to content

Commit

Permalink
revert to string type
Browse files Browse the repository at this point in the history
  • Loading branch information
dleroux committed Nov 7, 2019
1 parent 3263c97 commit 10b1f4f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/components/Popover/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<T, U> = {[P in keyof T]: T[P] extends U ? P : never}[keyof T];
type HTMLOnlyJsxIntrinsicElementsKeys = FilteredKeys<
JSX.IntrinsicElements,
React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>
>;

export interface PopoverProps {
/** The content to display inside the popover */
children?: React.ReactNode;
Expand All @@ -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 */
Expand Down

0 comments on commit 10b1f4f

Please sign in to comment.