fix(menu): do not override --ion-color-base

This commit is contained in:
Manu Mtz.-Almeida
2018-08-24 03:39:04 +02:00
parent 5f90dbfa6f
commit a8908283c4
4 changed files with 3 additions and 9 deletions

View File

@ -257,11 +257,11 @@ export class Select {
}
@Method()
open(ev?: UIEvent): Promise<HTMLIonActionSheetElement | HTMLIonAlertElement | HTMLIonPopoverElement>{
open(ev?: UIEvent): Promise<HTMLIonActionSheetElement | HTMLIonAlertElement | HTMLIonPopoverElement> {
let selectInterface = this.interface;
if ((selectInterface === 'action-sheet' || selectInterface === 'popover') && this.multiple) {
console.warn('Select interface cannot be "' + selectInterface + '" with a multi-value select. Using the "alert" interface instead.');
console.warn(`Select interface cannot be "${selectInterface}" with a multi-value select. Using the "alert" interface instead.`);
selectInterface = 'alert';
}