You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Reset the current page to 1 when the user types something
817
+
setCurrentPage(1);
818
+
},[textInputValue,prevTextInputValue]);
819
+
812
820
useEffect(()=>{
813
821
// Avoid changing focus if the textInputValue remains unchanged.
814
822
if(
@@ -831,11 +839,6 @@ function BaseSelectionList<TItem extends ListItem>(
831
839
}
832
840
}
833
841
834
-
// Reset the current page to 1 when the user types something
835
-
if(prevTextInputValue!==textInputValue){
836
-
setCurrentPage(1);
837
-
}
838
-
839
842
// Remove the focus if the search input is empty and prev search input not empty or selected options length is changed (and allOptions length remains the same)
0 commit comments