Replies: 1 comment
-
This is something that I think was working before the move to using the transition method. I've just now noticed that what I had working is now broken (I was using it to toggle an open icon to be replaced by a closed icon for a mobile menu) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have 2 divs that I wanna toggle. Div A starts as hidden and Div B starts as not hidden. When I click button, I want A to show and B to hide. The current toggle feature assumes a global data-toggle-open-value. Is it possible to set data-toggle-open-value per child div? or just look at if the div has hidden class or not and toggle them individually? I think that will be more flexible.
This will be really helpful if I want to have swapping effect and switch between 2 sets of content.
Beta Was this translation helpful? Give feedback.
All reactions