Skip to content

Commit 99d2563

Browse files
committed
fix(button-toggle): conflict with radio component
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 3f2db27 commit 99d2563

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
@@ -65,7 +65,7 @@ export class MdButtonToggleGroup implements AfterViewInit, ControlValueAccessor
6565
private _value: any = null;
6666

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

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

0 commit comments

Comments
 (0)