File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
packages/devextreme/js/__internal/ui/list Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,7 @@ class EditDecoratorSelection extends EditDecorator {
208208
209209 _selectAllHandler ( event ) : DeferredObj < unknown > {
210210 event . stopPropagation ( ) ;
211+ event . preventDefault ( ) ; // to prevent scrolling on space key press
211212 this . _list . _saveSelectionChangeEvent ( event ) ;
212213
213214 const { value } = this . _selectAllCheckBox . option ( ) ;
Original file line number Diff line number Diff line change @@ -56,7 +56,13 @@ class ListEdit extends ListBase {
5656 const isInternalMoving = editProvider . handleKeyboardEvents ( focusedItemIndex , moveUp ) ;
5757
5858 if ( ! isInternalMoving ) {
59- moveUp ? parent . upArrow ( e ) : parent . downArrow ( e ) ;
59+ if ( moveUp ) {
60+ parent . upArrow ( e ) ;
61+ } else {
62+ parent . downArrow ( e ) ;
63+ }
64+ } else {
65+ e . preventDefault ( ) ; // to prevent extra scrolling
6066 }
6167 }
6268 } ;
You can’t perform that action at this time.
0 commit comments