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
- if (value.length >= 2 || value.length === 0) {
77
- // Update the search term only if it's at least 2 characters or cleared
78
- setSearchTerm(value);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eleven-solutions-common-website-unique-web",
3
- "version": "20.0.30",
3
+ "version": "20.0.32",
4
4
  "main": "./dist/index.js",
5
5
  "scripts": {
6
6
  "build": "tsc",
@@ -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
- if (value.length >= 2 || value.length === 0) {
98
- // Update the search term only if it's at least 2 characters or cleared
99
- setSearchTerm(value);
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