Skip to content

Commit

Permalink
fix: send name via toggle action again
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Radchenko committed May 21, 2018
1 parent 80d5e54 commit 570df98
Show file tree
Hide file tree
Showing 2 changed files with 1,535 additions and 564 deletions.
4 changes: 3 additions & 1 deletion addon/components/x-toggle/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ export default Component.extend({
let disabled = this.get('disabled');

if (!disabled && (value !== this.get('value')) && (typeof onToggle === 'function')) {
onToggle(value);
let name = this.get('name');

onToggle(value, name);

// The click on input/label will toggle the input unconditionally.
// Input state has to be updated manually to prevent it going out of
Expand Down

0 comments on commit 570df98

Please sign in to comment.