File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
package/src/components/AutoCompleteInput Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -81,25 +81,28 @@ export type AutoCompleteInputProps = Partial<AutoCompleteInputPropsWithContext>;
8181const AutoCompleteInputWithContext = ( props : AutoCompleteInputPropsWithContext ) => {
8282 const {
8383 additionalTextInputProps,
84- autoCompleteSuggestionsLimit,
8584 closeSuggestions,
8685 cooldownActive = false ,
8786 giphyActive,
8887 giphyEnabled,
8988 maxMessageLength,
90- mentionAllAppUsersEnabled,
91- mentionAllAppUsersQuery,
9289 numberOfLines,
9390 onChange,
9491 openSuggestions,
9592 setGiphyActive,
9693 setInputBoxRef,
9794 t,
9895 text,
99- triggerSettings,
10096 updateSuggestions : updateSuggestionsContext ,
10197 } = props ;
10298
99+ const {
100+ autoCompleteSuggestionsLimit,
101+ mentionAllAppUsersEnabled,
102+ mentionAllAppUsersQuery,
103+ triggerSettings,
104+ } = useMessageInputContext ( ) ;
105+
103106 const isTrackingStarted = useRef ( false ) ;
104107 const selectionEnd = useRef ( 0 ) ;
105108 const [ textHeight , setTextHeight ] = useState ( 0 ) ;
You can’t perform that action at this time.
0 commit comments