mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 03:31:08 +08:00
Merge pull request #19954 from gitstart/fix/arrow-keydown-events
Controls: Arrow keys don't work on number controls
This commit is contained in:
commit
9e7ca4d187
@ -85,7 +85,6 @@ export const useHighlighted = ({
|
||||
const isArrowUp = matchesKeyCode('ArrowUp', event);
|
||||
const isArrowDown = matchesKeyCode('ArrowDown', event);
|
||||
if (!(isArrowUp || isArrowDown)) return;
|
||||
event.preventDefault();
|
||||
|
||||
const requestId = globalWindow.requestAnimationFrame(() => {
|
||||
globalWindow.cancelAnimationFrame(lastRequestId);
|
||||
|
Loading…
x
Reference in New Issue
Block a user