fix(combobox): form-control class to correct node (#1012)
* fix(combobox): form-control class to correct node
This commit is contained in:
parent
15b6079282
commit
533417f2d2
2 changed files with 14 additions and 0 deletions
5
.changeset/eleven-bears-repair.md
Normal file
5
.changeset/eleven-bears-repair.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"@lion/combobox": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(combobox): form-control class to correct node
|
||||||
|
|
@ -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]
|
* @enhance FormControlMixin - add slot[name=selection-display]
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue