#7648 - HOTFIX: myEntries filters #566

Merged
jsegarra merged 7 commits from hotfix_myEntries into master 2024-07-26 05:50:36 +00:00
1 changed files with 4 additions and 2 deletions
Showing only changes of commit 60708f4a6c - Show all commits

View File

@ -4,9 +4,11 @@ const filterAvailableInput = (element) => {
return element.classList.contains('q-field__native') && !element.disabled;
};
const filterAvailableText = (element) => {
const parentComponent = element.__vueParentComponent;
if (!parentComponent) return element.attributes.component.nodeValue !== 'input';
return (
element.__vueParentComponent.type.name === 'QInput' &&
element.__vueParentComponent?.attrs?.class !== 'vn-input-date'
parentComponent?.type.name === 'QInput' &&
parentComponent?.attrs?.class !== 'vn-input-date'
);
};