fix(select): interfaceOptions can customize mode (#16826)

fixes #16825
This commit is contained in:
Manu MA
2018-12-20 00:50:27 +01:00
committed by GitHub
parent 74587db672
commit 1227d57ac7
2 changed files with 4 additions and 4 deletions

View File

@ -273,8 +273,8 @@ export class Datetime implements ComponentInterface {
private generatePickerOptions(): PickerOptions {
const pickerOptions: PickerOptions = {
...this.pickerOptions,
mode: this.mode,
...this.pickerOptions,
columns: this.generateColumns()
};

View File

@ -204,9 +204,9 @@ export class Select implements ComponentInterface {
const interfaceOptions = this.interfaceOptions;
const popoverOpts: PopoverOptions = {
mode: this.mode,
...interfaceOptions,
mode: this.mode,
component: 'ion-select-popover',
cssClass: ['select-popover', interfaceOptions.cssClass],
event: ev,
@ -254,9 +254,9 @@ export class Select implements ComponentInterface {
const interfaceOptions = this.interfaceOptions;
const actionSheetOpts: ActionSheetOptions = {
mode: this.mode,
...interfaceOptions,
mode: this.mode,
buttons: actionSheetButtons,
cssClass: ['select-action-sheet', interfaceOptions.cssClass]
};
@ -271,9 +271,9 @@ export class Select implements ComponentInterface {
const inputType = (this.multiple ? 'checkbox' : 'radio');
const alertOpts: AlertOptions = {
mode: this.mode,
...interfaceOptions,
mode: this.mode,
header: interfaceOptions.header ? interfaceOptions.header : labelText,
inputs: this.childOpts.map(o => {
return {