forked from verdnatura/salix-front
feat: improve qFormMixin in production environment
This commit is contained in:
parent
aef83b7e9a
commit
60708f4a6c
|
@ -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'
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue