Skip to content

Commit

Permalink
fix(app): search not working
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Mar 1, 2024
1 parent 1063696 commit a2e8b1e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/app/src/components/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function Search() {
signals.current.clear();
}, []);

const enable = active === inputRef.current;
const enable = true || active === inputRef.current;
const disable = useCallback(() => inputRef.current?.blur(), []);

// Handle input change
Expand Down Expand Up @@ -424,7 +424,8 @@ function SearchHistory(props: {
>
{
<div className="flex justify-between items-center w-full">
<div>{h}</div>
{/* TODO: fix in cmdk lib */}
<div>{h.replace(/"/g, '')}</div>
<button
className="i-carbon-close text-2xl text-base-500 hover:text-base-900"
onMouseDown={(ev) => onRemoveHistory(ev, h)}
Expand Down

0 comments on commit a2e8b1e

Please sign in to comment.