Skip to content

Commit db99c67

Browse files
authored
[FIX] - adding preventDefault to handleClear (#186)
* adding preventDefault to handleClear * adding type to clear search button
1 parent b0dc51f commit db99c67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/select-panel/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ export const SelectPanel = (props: ISelectPanelProps) => {
189189
value={searchText}
190190
/>
191191
<button
192+
type="button"
192193
className={`${SearchClearButton} search-clear-button`}
193194
hidden={!searchText}
194195
onClick={handleClear}

0 commit comments

Comments
 (0)