mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 14:01:20 +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, {
|
overlay = new Popover(this._app, SelectPopover, {
|
||||||
options: popoverOptions
|
options: popoverOptions
|
||||||
}, {
|
}, {
|
||||||
cssClass: 'select-popover'
|
cssClass: popoverCssClass
|
||||||
}, this.config, this.deepLinker);
|
}, this.config, this.deepLinker);
|
||||||
|
|
||||||
// ev.target is readonly.
|
// ev.target is readonly.
|
||||||
|
Reference in New Issue
Block a user