File tree Expand file tree Collapse file tree
packages/autocomplete-core/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export function onInput<TItem extends BaseItem>({
6565 nextState . isOpen ?? props . shouldPanelOpen ( { state : store . getState ( ) } )
6666 ) ;
6767
68- // We to make sure to update the latest resolved value of the tracked
68+ // We make sure to update the latest resolved value of the tracked
6969 // promises to keep late resolving promises from "cancelling" the state
7070 // updates performed in this code path.
7171 // We chain with a void promise to respect `onInput`'s expected return type.
@@ -83,7 +83,7 @@ export function onInput<TItem extends BaseItem>({
8383 // We track the entire promise chain triggered by `onInput` before mutating
8484 // the Autocomplete state to make sure that any state manipulation is based on
8585 // fresh data regardless of when promises individually resolve.
86- // We don't track nested promises and only rely on the full chain reoslution ,
86+ // We don't track nested promises and only rely on the full chain resolution ,
8787 // meaning we should only ever manipulate the state outside of this call.
8888 return runConcurrentSafePromise (
8989 props
You can’t perform that action at this time.
0 commit comments