We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f955e2f commit aa5af31Copy full SHA for aa5af31
src/VueDatePicker/composables/position.ts
@@ -225,7 +225,7 @@ export const usePosition = ({
225
const getScrollableParent = function (el: HTMLElement | null): Window | HTMLElement {
226
if (!el || el === document.body || el.nodeType === Node.DOCUMENT_FRAGMENT_NODE) return window;
227
if (isScrollable(el)) return el;
228
- return getScrollableParent(el.assignedSlot ? el.assignedSlot.parentElement : el.parentElement);
+ return getScrollableParent((el.assignedSlot ? el.assignedSlot.parentNode : el.parentNode) as HTMLElement);
229
};
230
231
const getShadowPos = (rect?: DOMRect) => {
0 commit comments