eleven-solutions-common-website-unique-web 20.0.30 → 20.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -73,10 +73,9 @@ const Users = ({ url }) => {
|
|
73
73
|
// };
|
74
74
|
const handleSearchChange = (event) => {
|
75
75
|
const value = event.target.value.toLowerCase();
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
setCurrentPage(1);
|
76
|
+
setSearchTerm(value); // Always update the input field
|
77
|
+
if (value.length === 0) {
|
78
|
+
setCurrentPage(1); // Reset to the first page if input is cleared
|
80
79
|
}
|
81
80
|
};
|
82
81
|
const handleSearchSubmit = (event) => {
|
package/package.json
CHANGED
@@ -94,10 +94,9 @@ const Users = ({ url }: UsersProps) => {
|
|
94
94
|
|
95
95
|
const handleSearchChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
96
96
|
const value = event.target.value.toLowerCase();
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
setCurrentPage(1);
|
97
|
+
setSearchTerm(value); // Always update the input field
|
98
|
+
if (value.length === 0) {
|
99
|
+
setCurrentPage(1); // Reset to the first page if input is cleared
|
101
100
|
}
|
102
101
|
};
|
103
102
|
|