mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
fix(select): add cssClass for popover interface (#11769)
* fix(ionSelect): support cssClass for popover interface * fix default cssClass value
This commit is contained in:

committed by
Brandy Carney

parent
64cac79da6
commit
1c25acbb1f
@ -306,10 +306,15 @@ export class Select extends BaseInput<any> implements OnDestroy {
|
||||
}
|
||||
}));
|
||||
|
||||
var popoverCssClass = 'select-popover';
|
||||
|
||||
// If the user passed a cssClass for the select, add it
|
||||
popoverCssClass += selectOptions.cssClass ? ' ' + selectOptions.cssClass : '';
|
||||
|
||||
overlay = new Popover(this._app, SelectPopover, {
|
||||
options: popoverOptions
|
||||
}, {
|
||||
cssClass: 'select-popover'
|
||||
cssClass: popoverCssClass
|
||||
}, this.config, this.deepLinker);
|
||||
|
||||
// ev.target is readonly.
|
||||
|
Reference in New Issue
Block a user