Skip to content

Commit 447a7e0

Browse files
Better UI feedback for FacetWP checkbox and radio inputs.
1 parent a8ea8bb commit 447a7e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

resources/assets/js/facetwp/choices.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ $document.on( 'facetwp-loaded', () => {
3636
return;
3737
}
3838

39-
input.checked = ! input.getAttribute( 'checked' );
39+
const foundInput = wrapper.querySelector( 'input' );
40+
41+
foundInput.checked = ! foundInput.checked;
4042
} );
4143
} );
4244
} );

0 commit comments

Comments
 (0)