Skip to content

Commit

Permalink
Update CustomToggle.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tommysonsylverstone committed Jan 18, 2023
1 parent e6d66bf commit 31bec53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/js/components/CustomToggle/CustomToggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class CustomToggle extends React.PureComponent {

for (let i = 0; i < input.length; i++) {
const togglerLabel = input[i].parentElement.parentElement.parentElement.parentElement.previousSibling;
if (togglerLabel) {
if (togglerLabel) {
togglerLabel.classList.add('togglerlabel');
const mainContainer = input[i].parentElement.parentElement.parentElement.parentElement.parentElement.parentElement;
mainContainer.classList.add('toggler-container');
Expand Down

0 comments on commit 31bec53

Please sign in to comment.