mirror of https://github.com/ElemeFE/element
				
				
				
			Fix popper.js bug in IE, #291
							parent
							
								
									86f1cf7b21
								
							
						
					
					
						commit
						24f9776f45
					
				|  | @ -1058,7 +1058,10 @@ | ||||||
|             ['scroll', 'auto'].indexOf(getStyleComputedProperty(element, 'overflow-x')) !== -1 || |             ['scroll', 'auto'].indexOf(getStyleComputedProperty(element, 'overflow-x')) !== -1 || | ||||||
|             ['scroll', 'auto'].indexOf(getStyleComputedProperty(element, 'overflow-y')) !== -1 |             ['scroll', 'auto'].indexOf(getStyleComputedProperty(element, 'overflow-y')) !== -1 | ||||||
|         ) { |         ) { | ||||||
|             return element; |             // If the detected scrollParent is body, we perform an additional check on its parentNode
 | ||||||
|  |             // in this way we'll get body if the browser is Chrome-ish, or documentElement otherwise
 | ||||||
|  |             // fixes issue #65
 | ||||||
|  |             return element === root.document.body ? getScrollParent(element.parentNode) : element; | ||||||
|         } |         } | ||||||
|         return element.parentNode ? getScrollParent(element.parentNode) : element; |         return element.parentNode ? getScrollParent(element.parentNode) : element; | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 qingwei.li
						qingwei.li