mirror of https://github.com/ElemeFE/element
InfiniteScroll: fix ie11 is not support Number.parseFloat
parent
21f8fcda61
commit
8ff6efb122
|
@ -104,7 +104,7 @@ const handleScroll = function(cb) {
|
|||
} else {
|
||||
const heightBelowTop = getOffsetHeight(el) + getElementTop(el) - getElementTop(container);
|
||||
const offsetHeight = getOffsetHeight(container);
|
||||
const borderBottom = Number.parseFloat(getStyleComputedProperty(container, 'borderBottomWidth'));
|
||||
const borderBottom = parseFloat(getStyleComputedProperty(container, 'borderBottomWidth'));
|
||||
shouldTrigger = heightBelowTop - offsetHeight + borderBottom <= distance;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue