Fixed #3526 - Calendar: Regression. Incorrect calendar pop-up positioning when used as editor in DataTable

pull/3567/head
mertsincan 2023-01-19 05:10:59 +00:00
parent 2da56f7ed9
commit aca9fcf8dd
2 changed files with 5 additions and 3 deletions

View File

@ -141,9 +141,11 @@ export default {
} }
if (this.d_editing && (this.editMode === 'cell' || (this.editMode === 'row' && this.columnProp('rowEditor')))) { if (this.d_editing && (this.editMode === 'cell' || (this.editMode === 'row' && this.columnProp('rowEditor')))) {
const focusableEl = DomHandler.getFirstFocusableElement(this.$el); setTimeout(() => {
const focusableEl = DomHandler.getFirstFocusableElement(this.$el);
focusableEl && focusableEl.focus(); focusableEl && focusableEl.focus();
}, 1);
} }
}, },
beforeUnmount() { beforeUnmount() {

View File

@ -513,7 +513,7 @@ export default {
}, },
isExist(element) { isExist(element) {
return element !== null && typeof element !== 'undefined' && element.nodeName && element.parentNode; return !!(element !== null && typeof element !== 'undefined' && element.nodeName && element.parentNode);
}, },
isClient() { isClient() {