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 18, 2024
1 parent 139fab4 commit be5b967
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 be5b967

Please sign in to comment.