Skip to content

Commit e53e726

Browse files
committed
fix: remove props from auto complete input
1 parent ac0d0cc commit e53e726

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

package/src/components/AutoCompleteInput/AutoCompleteInput.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,25 +81,28 @@ export type AutoCompleteInputProps = Partial<AutoCompleteInputPropsWithContext>;
8181
const 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);

0 commit comments

Comments
 (0)