Skip to content

Commit

Permalink
Don't add unused keydown listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Dec 20, 2024
1 parent ab0697a commit 499e487
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/view/com/util/forms/NativeDropdown.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ export function NativeDropdown({
const menuRef = React.useRef<HTMLDivElement>(null)

React.useEffect(() => {
if (!open) {
return
}

function clickHandler(e: MouseEvent) {
const t = e.target

Expand Down

0 comments on commit 499e487

Please sign in to comment.