Skip to content

Commit 1227d57

Browse files
authored
fix(select): interfaceOptions can customize mode (#16826)
fixes #16825
1 parent 74587db commit 1227d57

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/src/components/datetime/datetime.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ export class Datetime implements ComponentInterface {
273273

274274
private generatePickerOptions(): PickerOptions {
275275
const pickerOptions: PickerOptions = {
276-
...this.pickerOptions,
277276
mode: this.mode,
277+
...this.pickerOptions,
278278
columns: this.generateColumns()
279279
};
280280

core/src/components/select/select.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ export class Select implements ComponentInterface {
204204
const interfaceOptions = this.interfaceOptions;
205205

206206
const popoverOpts: PopoverOptions = {
207+
mode: this.mode,
207208
...interfaceOptions,
208209

209-
mode: this.mode,
210210
component: 'ion-select-popover',
211211
cssClass: ['select-popover', interfaceOptions.cssClass],
212212
event: ev,
@@ -254,9 +254,9 @@ export class Select implements ComponentInterface {
254254

255255
const interfaceOptions = this.interfaceOptions;
256256
const actionSheetOpts: ActionSheetOptions = {
257+
mode: this.mode,
257258
...interfaceOptions,
258259

259-
mode: this.mode,
260260
buttons: actionSheetButtons,
261261
cssClass: ['select-action-sheet', interfaceOptions.cssClass]
262262
};
@@ -271,9 +271,9 @@ export class Select implements ComponentInterface {
271271
const inputType = (this.multiple ? 'checkbox' : 'radio');
272272

273273
const alertOpts: AlertOptions = {
274+
mode: this.mode,
274275
...interfaceOptions,
275276

276-
mode: this.mode,
277277
header: interfaceOptions.header ? interfaceOptions.header : labelText,
278278
inputs: this.childOpts.map(o => {
279279
return {

0 commit comments

Comments
 (0)