Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
joschne committed Jan 23, 2024
1 parent 2a638ab commit 442ae49
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 23 deletions.
8 changes: 4 additions & 4 deletions lib/projectHomePages/roman-senate/roman-senate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ const RomanSenate_component: NextPage<ProjectPageProps> = (props) => {
enterkeyhint="enter"
placeholder="Search and hit enter…"
ref={(el: any) => {
el?.getInputElement().then(() => {
setTimeout(() => {
setTimeout(() => {
el?.getInputElement().then(() => {
console.log('focus on ', el);
el?.setFocus();
}, 300);
});
});
}, 300);
el?.addEventListener('keypress', (event: KeyboardEvent) => {
if (event.key === 'Enter') {
el?.getInputElement().then((inputEl: HTMLInputElement) => {
Expand Down
78 changes: 61 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"require-from-string": "^2.0.2",
"sharp": "^0.31.0",
"sharp": "0.32.6",
"swiper": "^9.4.1"
},
"devDependencies": {
Expand All @@ -51,4 +51,4 @@
"typescript": "4.6.3",
"webpack": "^5.73.0"
}
}
}

0 comments on commit 442ae49

Please sign in to comment.