Skip to content

Commit

Permalink
Fixed #1297 - AutoComplete: selectedItemTemplate ts binding claims to…
Browse files Browse the repository at this point in the history
… expect JSX.Element in return, but at runtime a string is expected
  • Loading branch information
cagataycivici committed Apr 16, 2020
1 parent b02cf3f commit 9750f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/autocomplete/AutoComplete.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ interface AutoCompleteProps {
ariaLabelledBy?: string;
completeMethod?(e: {originalEvent: Event, query: string}): void;
itemTemplate?(data: any): JSX.Element | undefined;
selectedItemTemplate?(data: any): JSX.Element | undefined;
selectedItemTemplate?(data: any): string;
onChange?(e: {originalEvent: Event, value: any, target: {name: string, id: string, value: any}}): void;
onFocus?(event: Event): void;
onBlur?(event: Event): void;
Expand Down

0 comments on commit 9750f70

Please sign in to comment.