From 6da9eb6398275006a5d9a26927944da73d794974 Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Thu, 8 Dec 2016 23:38:06 +0100 Subject: [PATCH] fix(alert): input missing id attribute from input options fixes #9457 --- src/components/alert/alert-component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/alert/alert-component.ts b/src/components/alert/alert-component.ts index 7f3e84871f0..70f04dbf9f0 100644 --- a/src/components/alert/alert-component.ts +++ b/src/components/alert/alert-component.ts @@ -154,7 +154,7 @@ export class AlertCmp { label: input.label, checked: !!input.checked, disabled: !!input.disabled, - id: `alert-input-${this.id}-${index}`, + id: isPresent(input.id) ? input.id : `alert-input-${this.id}-${index}`, handler: isPresent(input.handler) ? input.handler : null, }; });