fix(alert): check if value is null instead of truthy

fixes #15420
This commit is contained in:
Brandy Carney
2018-09-19 13:02:08 -04:00
parent 6890ecccda
commit 799f0d7a2e

View File

@ -155,7 +155,7 @@ export class Alert implements ComponentInterface, OverlayInterface {
type: i.type || 'text',
name: i.name || `${index}`,
placeholder: i.placeholder || '',
value: i.value || '',
value: (i.value != null) ? i.value : '',
label: i.label,
checked: !!i.checked,
disabled: !!i.disabled,