fix(combobox): form-control class to correct node (#1012)

* fix(combobox): form-control class to correct node
This commit is contained in:
palash2601 2020-10-08 11:04:08 +02:00 committed by GitHub
parent 15b6079282
commit 533417f2d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
"@lion/combobox": patch
---
fix(combobox): form-control class to correct node

View file

@ -68,6 +68,15 @@ export class LionCombobox extends OverlayMixin(LionListbox) {
];
}
/**
* @enhance FormControlMixin - add form-control to [slot=input] instead of _inputNode
*/
_enhanceLightDomClasses() {
if (this.querySelector('[slot=input]')) {
this.querySelector('[slot=input]').classList.add('form-control');
}
}
/**
* @enhance FormControlMixin - add slot[name=selection-display]
*/