From e3d9f419269a1c4588c0c13caae96952280e9513 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Sun, 21 Jan 2024 11:56:17 +0000 Subject: [PATCH] Fixed #5055 - Calendar: When use with Datatable filter, the calendar would show at the bottom of the page. --- components/lib/basedirective/BaseDirective.js | 1 + components/lib/datatable/ColumnFilter.vue | 7 +++++-- components/lib/focustrap/FocusTrap.js | 7 +++++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/components/lib/basedirective/BaseDirective.js b/components/lib/basedirective/BaseDirective.js index cecbc8012..774a3e496 100644 --- a/components/lib/basedirective/BaseDirective.js +++ b/components/lib/basedirective/BaseDirective.js @@ -112,6 +112,7 @@ const BaseDirective = { el.$instance = el._$instances[name]; // pass instance data to hooks el.$instance[hook]?.(el, binding, vnode, prevVnode); // handle hook in directive implementation + el[`$${name}`] = el.$instance; // expose all options with $ BaseDirective._hook(name, hook, el, binding, vnode, prevVnode); // handle hooks during directive uses (global and self-definition) }; diff --git a/components/lib/datatable/ColumnFilter.vue b/components/lib/datatable/ColumnFilter.vue index f3cc62ec0..dbad5fd05 100644 --- a/components/lib/datatable/ColumnFilter.vue +++ b/components/lib/datatable/ColumnFilter.vue @@ -22,12 +22,12 @@ - +