Skip to content

Commit

Permalink
Don't add unused keydown listeners (#7218)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Dec 20, 2024
1 parent 6afa44d commit 8a3dfcb
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 8a3dfcb

Please sign in to comment.