Skip to content

Commit

Permalink
algolia #1183
Browse files Browse the repository at this point in the history
  • Loading branch information
Dishant Kapoor committed Jan 16, 2024
1 parent 186ff9b commit 9a34596
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/autocomplete-js/src/createAutocompleteDom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ export function createAutocompleteDom<TItem extends BaseItem>({
const detachedSearchButton = createDomElement('button', {
type: 'button',
class: classNames.detachedSearchButton,
title: 'Search',
onClick() {
setIsModalOpen(true);
},
Expand All @@ -172,6 +173,7 @@ export function createAutocompleteDom<TItem extends BaseItem>({
});
const detachedCancelButton = createDomElement('button', {
type: 'button',
title: 'Cancel',
class: classNames.detachedCancelButton,
textContent: translations.detachedCancelButtonText,
// Prevent `onTouchStart` from closing the panel
Expand Down

0 comments on commit 9a34596

Please sign in to comment.