Skip to content

Commit

Permalink
chore: update preact to 10.25.1
Browse files Browse the repository at this point in the history
  • Loading branch information
birtles committed Dec 3, 2024
1 parent deab2fe commit b3dee20
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"@birchill/jpdict-idb": "^2.3.1",
"@birchill/normal-jp": "^1.5.0",
"idb-keyval": "^6.2.1",
"preact": "^10.17.0",
"preact": "10.25.1",
"tailwindcss": "^3.3.3"
},
"lint-staged": {
Expand Down
8 changes: 1 addition & 7 deletions src/components/SearchBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ export const SearchBox: FunctionalComponent<Props> = (props: Props) => {
[props.onUpdateSearch]
);

// I failed to make Preact recognize enterKeyHint.
// Succeeded with React. Who knows.
const specialProps = {
enterKeyHint: 'search',
};

return (
<nav class="container mx-auto max-w-3xl -mt-half-input-text-2xl-py-6 mb-12 sm:mb-20 px-12">
<form action="/" method="get" onSubmit={onSubmit}>
Expand All @@ -97,7 +91,7 @@ export const SearchBox: FunctionalComponent<Props> = (props: Props) => {
backgroundSize: '1em 1em',
}}
aria-label="Search"
{...specialProps}
enterKeyHint="search"
/>
</form>
</nav>
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5193,10 +5193,10 @@ postcss@^8.4.33:
picocolors "^1.0.0"
source-map-js "^1.0.2"

preact@^10.17.0:
version "10.24.3"
resolved "https://registry.yarnpkg.com/preact/-/preact-10.24.3.tgz#086386bd47071e3b45410ef20844c21e23828f64"
integrity sha512-Z2dPnBnMUfyQfSQ+GBdsGa16hz35YmLmtTLhM169uW944hYL6xzTYkJjC07j+Wosz733pMWx0fgON3JNw1jJQA==
preact@10.25.1:
version "10.25.1"
resolved "https://registry.yarnpkg.com/preact/-/preact-10.25.1.tgz#1c4b84253c42dee874bfbf6a92bdce45e3662665"
integrity sha512-frxeZV2vhQSohQwJ7FvlqC40ze89+8friponWUFeVEkaCfhC6Eu4V0iND5C9CXz8JLndV07QRDeXzH1+Anz5Og==

[email protected]:
version "3.4.1"
Expand Down

0 comments on commit b3dee20

Please sign in to comment.