Skip to content

Commit a4fe5de

Browse files
committed
- Fixed bug: ScrollOverflowReset not working as expected #4388
1 parent 299417b commit a4fe5de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/js/scrolloverflow.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { isResponsiveMode } from './responsive.js';
66
import { isMacDevice, isTouchDevice, isTouch, win, doc } from './common/constants.js';
77
import { $body } from './common/cache.js';
88
import {
9+
ACTIVE_SEL,
910
AUTO_HEIGHT,
1011
AUTO_HEIGHT_RESPONSIVE,
1112
OVERFLOW,
@@ -59,7 +60,7 @@ export const scrollOverflowHandler = {
5960
this.focusedElem.blur();
6061
}
6162

62-
if(utils.$(OVERFLOW_SEL, getState().activeSection.item)[0]){
63+
if(utils.$(OVERFLOW_SEL + ACTIVE_SEL, getState().activeSection.item)[0]){
6364
this.focusedElem = utils.$(OVERFLOW_SEL, getState().activeSection.item)[0];
6465
this.focusedElem.focus();
6566
}

0 commit comments

Comments
 (0)