diff --git a/core/src/components/alert/alert-interface.ts b/core/src/components/alert/alert-interface.ts index a295b33631..4b109ea99f 100644 --- a/core/src/components/alert/alert-interface.ts +++ b/core/src/components/alert/alert-interface.ts @@ -23,7 +23,7 @@ export interface AlertInput { type?: TextFieldTypes | 'checkbox' | 'radio'; name?: string; placeholder?: string; - value?: string; + value?: any; label?: string; checked?: boolean; disabled?: boolean; diff --git a/core/src/components/alert/alert.tsx b/core/src/components/alert/alert.tsx index e8b0e3e116..963425e3b2 100644 --- a/core/src/components/alert/alert.tsx +++ b/core/src/components/alert/alert.tsx @@ -156,7 +156,7 @@ export class Alert implements ComponentInterface, OverlayInterface { type: i.type || 'text', name: i.name || `${index}`, placeholder: i.placeholder || '', - value: i.value || '', + value: i.value, label: i.label, checked: !!i.checked, disabled: !!i.disabled, diff --git a/core/src/components/radio/radio.tsx b/core/src/components/radio/radio.tsx index 80ba25330f..d8b4e0af8c 100644 --- a/core/src/components/radio/radio.tsx +++ b/core/src/components/radio/radio.tsx @@ -105,7 +105,7 @@ export class Radio implements ComponentInterface { } componentWillLoad() { - if (this.value == null) { + if (this.value === undefined) { this.value = this.inputId; } this.emitStyle(); diff --git a/core/src/components/select/test/conflict/index.html b/core/src/components/select/test/conflict/index.html new file mode 100644 index 0000000000..e6aba2464f --- /dev/null +++ b/core/src/components/select/test/conflict/index.html @@ -0,0 +1,83 @@ + + + +
+ +