Skip to content

Commit 00f43a7

Browse files
committed
value trim on onChnage event
1 parent 872fbb8 commit 00f43a7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/ClusterNodes/ClusterSelectionList.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default function ClusterSelectionList({
7777
}
7878

7979
const handleSearchChange = (value): void => {
80-
setSearchText(value)
80+
setSearchText(value.trim())
8181
}
8282

8383
const handleOnBlur = (event): void => {
@@ -100,7 +100,6 @@ export default function ClusterSelectionList({
100100
autoFocus: true,
101101
disabled: minLoader,
102102
}}
103-
handleOnBlur={handleOnBlur}
104103
/>
105104
)
106105
}

0 commit comments

Comments
 (0)