Skip to content

Commit 9e99374

Browse files
crisbetommalerba
authored andcommitted
fix(button-toggle): conflict with radio component (#2343)
Prevents the button toggle from conflicting with radio buttons on the same page. This was because both components were using the same pattern to generate unique `name` attributes. Fixes #2274.
1 parent 4bf4b87 commit 9e99374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/button-toggle/button-toggle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class MdButtonToggleGroup implements AfterViewInit, ControlValueAccessor
6666
private _value: any = null;
6767

6868
/** The HTML name attribute applied to toggles in this group. */
69-
private _name: string = `md-radio-group-${_uniqueIdCounter++}`;
69+
private _name: string = `md-button-toggle-group-${_uniqueIdCounter++}`;
7070

7171
/** Disables all toggles in the group. */
7272
private _disabled: boolean = null;

0 commit comments

Comments
 (0)