File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -360,7 +360,7 @@ const Suggestions = ({
360360 onClose,
361361} : {
362362 state : SuggestionState
363- onSelect : ( suggestionResult : string ) => void
363+ onSelect : ( suggestionResult : SuggestionResult ) => void
364364 onClose : ( ) => void
365365} ) => {
366366 const isMentionType = state . type === 'mention'
@@ -420,13 +420,13 @@ const SuggestionList = ({
420420} : {
421421 suggestionList : SuggestionResult [ ]
422422 position : SuggestionPosition
423- onSuggestionSelect : ( suggestionResult : string ) => void
423+ onSuggestionSelect : ( suggestionResult : SuggestionResult ) => void
424424 onClose : ( ) => void
425425} ) => {
426426 const ref = useDetectClickOutside ( { onTriggered : onClose } )
427427
428428 const { moveHighlightedItem, selectHighlightedItem, useItem } = useItemList ( {
429- onSelect : ( item : SuggestionResult ) => {
429+ onSelect : ( item : { value : SuggestionResult } ) => {
430430 onSuggestionSelect ( item . value )
431431 } ,
432432 } )
You can’t perform that action at this time.
0 commit comments