Bug fix
This commit is contained in:
parent
be94cf59e9
commit
8293248492
2
components/dist/input.js
vendored
2
components/dist/input.js
vendored
@ -524,7 +524,7 @@ customElements.define('sm-input',
|
||||
this.label.classList.remove('hidden');
|
||||
}
|
||||
this.setAttribute('role', 'textbox');
|
||||
if (('smCompConfig' in window) && smCompConfig['sm-input']) {
|
||||
if (typeof smCompConfig !== 'undefined' && smCompConfig['sm-input']) {
|
||||
const config = smCompConfig['sm-input'].find(config => this.matches(config.selector))
|
||||
this.customValidation = config?.customValidation;
|
||||
}
|
||||
|
||||
2
components/dist/input.min.js
vendored
2
components/dist/input.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user