Skip to content

Commit

Permalink
fix: nested checkbox regression (resolves #210)
Browse files Browse the repository at this point in the history
  • Loading branch information
greatislander committed Jan 29, 2020
1 parent 05e8703 commit 51def71
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/assets/scripts/Pinecone/NestedCheckbox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class NestedCheckbox {
...options
};

// this.initDisclosure();
this.initCustomCheckbox();

this.handleChange = this.handleChange.bind( this );
Expand Down Expand Up @@ -115,7 +114,7 @@ class NestedCheckbox {
* @param {Event} event
*/
handleClick( event ) {
if ( ! 'checkbox' !== event.target.getAttribute( 'role' ) ) return;
if ( 'checkbox' !== event.target.getAttribute( 'role' ) ) return;
if ( 'checkbox' === event.target.getAttribute( 'role' ) ) {
this.toggleMixedCheckbox( event.target );
}
Expand Down

0 comments on commit 51def71

Please sign in to comment.