mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 10:01:59 +08:00
fix(alert): remove unneeded warning
This commit is contained in:
@ -367,18 +367,19 @@ export class Select {
|
||||
const labelText = (label) ? label.textContent : null;
|
||||
|
||||
const interfaceOptions = this.interfaceOptions;
|
||||
const inputType = (this.multiple ? 'checkbox' : 'radio');
|
||||
const alertOpts: AlertOptions = {
|
||||
...interfaceOptions,
|
||||
|
||||
header: interfaceOptions.header ? interfaceOptions.header : labelText,
|
||||
inputs: this.childOpts.map(o => {
|
||||
return {
|
||||
type: (this.multiple ? 'checkbox' : 'radio'),
|
||||
type: inputType,
|
||||
label: o.textContent,
|
||||
value: o.value,
|
||||
checked: o.selected,
|
||||
disabled: o.disabled
|
||||
} as AlertInput;
|
||||
};
|
||||
}),
|
||||
buttons: [
|
||||
{
|
||||
|
Reference in New Issue
Block a user