diff --git a/packages/ui/useScroll/useScroll.js b/packages/ui/useScroll/useScroll.js index 2742b90933..83dd113243 100644 --- a/packages/ui/useScroll/useScroll.js +++ b/packages/ui/useScroll/useScroll.js @@ -813,7 +813,7 @@ const useScrollBase = (props) => { scrollByPage(ev.keyCode); } } else { - props.preventScroll(ev); + props.preventScroll?.(ev); forward('onKeyDown', ev, props); } }