Skip to content

Commit

Permalink
fix Search
Browse files Browse the repository at this point in the history
  • Loading branch information
yamader committed Feb 11, 2024
1 parent c48c1df commit e4bea98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-mfm",
"description": "MFM for React",
"version": "0.5.0",
"version": "0.5.1",
"author": "YamaD <[email protected]>",
"dependencies": {
"@twemoji/api": "15.0.3",
Expand Down
7 changes: 1 addition & 6 deletions src/components/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,7 @@ export default function Search({ query }: MfmSearch["props"]) {
key={query}
className="mfm-searchInput"
/>
<button
onClick={() => {
const current = input.current?.value
if (current) search(current)
}}
className="mfm-searchButton">
<button onClick={() => search(input.current?.value ?? query)} className="mfm-searchButton">
検索
</button>
</div>
Expand Down

0 comments on commit e4bea98

Please sign in to comment.