Skip to content

Commit

Permalink
Utils: fix isScroll (ElemeFE#21098)
Browse files Browse the repository at this point in the history
  • Loading branch information
canvascat authored and cn3lfs committed Feb 24, 2022
1 parent 93476a1 commit b663cf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export const isScroll = (el, vertical) => {
: getStyle(el, 'overflow-x')
: getStyle(el, 'overflow');

return overflow.match(/(scroll|auto)/);
return overflow.match(/(scroll|auto|overlay)/);
};

export const getScrollContainer = (el, vertical) => {
Expand Down

0 comments on commit b663cf9

Please sign in to comment.