Skip to content

Commit 6da9eb6

Browse files
committed
fix(alert): input missing id attribute from input options
fixes #9457
1 parent e770a9a commit 6da9eb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/alert/alert-component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export class AlertCmp {
154154
label: input.label,
155155
checked: !!input.checked,
156156
disabled: !!input.disabled,
157-
id: `alert-input-${this.id}-${index}`,
157+
id: isPresent(input.id) ? input.id : `alert-input-${this.id}-${index}`,
158158
handler: isPresent(input.handler) ? input.handler : null,
159159
};
160160
});

0 commit comments

Comments
 (0)