Skip to content

Commit

Permalink
fix(ddm): enable enter to confirm dropdown selection (#57898)
Browse files Browse the repository at this point in the history
  • Loading branch information
obostjancic committed Oct 11, 2023
1 parent 6c8c3c2 commit 74324a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/app/views/ddm/scratchpadSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ function SaveAsDropdown({
setName('');
}, [name, onSave, setOpen]);

const enterKeyPressed = useKeyPress('Enter', undefined, true);
const enterKeyPressed = useKeyPress('Enter');

useEffect(() => {
if (isOpen && enterKeyPressed && name) {
Expand Down

0 comments on commit 74324a6

Please sign in to comment.