fix(select): add cssClass for popover interface (#11769)

* fix(ionSelect): support cssClass for popover interface

* fix default cssClass value
This commit is contained in:
Snir Segal
2017-06-05 20:58:48 +03:00
committed by Brandy Carney
parent 64cac79da6
commit 1c25acbb1f

View File

@ -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.