File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/VueDatePicker/composables Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -233,8 +233,11 @@ export const usePosition = ({
233
233
const getScrollableParent = function ( el : HTMLElement | null ) : Window | HTMLElement {
234
234
if ( ! el || el === document . body || el . nodeType === Node . DOCUMENT_FRAGMENT_NODE ) return window ;
235
235
if ( isScrollable ( el ) ) return el ;
236
- const parent = defaultedConfig . value . shadowDom ? 'parentNode' : 'parentElement' ;
237
- return getScrollableParent ( ( el . assignedSlot ? el . assignedSlot [ parent ] : el [ parent ] ) as HTMLElement ) ;
236
+ return getScrollableParent (
237
+ ( el . assignedSlot && defaultedConfig . value . shadowDom
238
+ ? el . assignedSlot . parentNode
239
+ : el . parentNode ) as HTMLElement ,
240
+ ) ;
238
241
} ;
239
242
240
243
const getShadowPos = ( rect ?: DOMRect ) => {
You can’t perform that action at this time.
0 commit comments