Skip to content

Commit

Permalink
fix(button-toggle): conflict with radio component
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
crisbeto committed Dec 22, 2016
1 parent 3f2db27 commit 99d2563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/button-toggle/button-toggle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class MdButtonToggleGroup implements AfterViewInit, ControlValueAccessor
private _value: any = null;

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

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

0 comments on commit 99d2563

Please sign in to comment.