Replace null JSX attributes by undefined

See https://github.com/hibiken/react-places-autocomplete/pull/256
See https://codesandbox.io/s/yw7o81nq39
This commit is contained in:
Tanguy Krotoff
2019-02-19 01:19:57 +01:00
parent a258dc9251
commit 0cf627b0fb
+2 -2
View File
@@ -53,7 +53,7 @@ export interface PropTypes {
role: 'combobox';
'aria-autocomplete': 'list';
'aria-expanded': boolean;
'aria-activedescendant': string | null;
'aria-activedescendant': string | undefined;
disabled: boolean;
onKeyDown: React.KeyboardEventHandler;
onBlur: () => void;
@@ -62,7 +62,7 @@ export interface PropTypes {
} & InputProps;
getSuggestionItemProps: <SuggestionProps extends {}>(suggestion: Suggestion, options?: SuggestionProps) => {
key: number;
id: string | null;
id: string | undefined;
role: 'option';
onMouseEnter: () => void;
onMouseLeave: () => void;