Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/BoldGrid/controls
Browse files Browse the repository at this point in the history
  • Loading branch information
rramo012 committed Jan 14, 2018
2 parents 34a9b94 + 8d9b00e commit 9bbf478
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/controls/device-visibility/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,16 @@ export class Control {
$input.on( 'change', e => {
const isChecked = $input.prop( 'checked' );

if ( this._allChecked() ) {
$input.prop( 'checked', false );
return;
}

if ( isChecked ) {
this.$target.addClass( checkbox.class );
} else {
this.$target.removeClass( checkbox.class );
}

if ( this._allChecked() ) {
$input.prop( 'checked', false );
}
} );
}
}
Expand Down

0 comments on commit 9bbf478

Please sign in to comment.