Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
curlyfriesplease committed Nov 22, 2024
1 parent e4e715e commit ba3581c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ const TextInputWithDropdown = React.forwardRef(

// Only add the listeners if we have options showing
if (options.length > 0 && !forceClosed) {
["mousedown", "touchstart"].forEach(event => document.addEventListener(event, handleClickOutside));
['mousedown', 'touchstart'].forEach(event => document.addEventListener(event, handleClickOutside));
}

return () => {
["mousedown", "touchstart"].forEach(event => document. removeEventListener(event, handleClickOutside));
['mousedown', 'touchstart'].forEach(event => document.removeEventListener(event, handleClickOutside));
};
}, [options.length, forceClosed, onChange]);

Expand Down

0 comments on commit ba3581c

Please sign in to comment.