Skip to content

Commit 2421afc

Browse files
committed
fix: prevent input from closing
1 parent 481ac94 commit 2421afc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/command-pallette/CommandPalletteUI/CommandPaletteSearchBar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export function CommandPaletteSearchBar({ slot }: { slot?: string }) {
5050
<Input
5151
accessibleName="command-palette-search-bar"
5252
onClick={() => setOpen(true)}
53+
onInput={e => e.preventDefault()}
5354
showClearIcon
5455
className="search-with-display-more command-palette-search-bar"
5556
icon={<Icon name="slim-arrow-right" />}

src/header/Header.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ export function Header() {
177177
onProfileClick={() => setIsMenuOpen(true)}
178178
searchField={<CommandPaletteSearchBar slot="searchField" />}
179179
showSearchField
180+
onSearchButtonClick={e => e.preventDefault()}
180181
ref={shellbarRef}
181182
>
182183
{isSnowEnabled && (

0 commit comments

Comments
 (0)