Skip to content

Commit

Permalink
✨ data catalog input blur and clear enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesau committed Sep 19, 2024
1 parent 1156745 commit 2b9d847
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions site/DataCatalog/DataCatalog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ const DataCatalogSearchInput = ({
value={value}
onChange={(e) => {
setLocalQuery(e.target.value)
if (e.target.value === "") {
setGlobalQuery("")
}
}}
onBlur={() => {
setGlobalQuery(value)
}}
/>
<button
Expand Down

0 comments on commit 2b9d847

Please sign in to comment.