This commit is contained in:
sairaj mote 2023-10-04 04:00:31 +05:30
parent be94cf59e9
commit 8293248492
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

File diff suppressed because one or more lines are too long