Skip to content

Conversation

lucaswiersma
Copy link

The class visible or hidden was never set in the on init method.
To fix I use the hideOrShow utils method in the on init instead of calling the show/hide methods.
Subsequently we call the updateModal method which was otherwise called in the show/hide methods. these two methods will now no longer be used and therefore removed.

… on init (same as on change)

this will add the class visible on items that should be shown and hidden on items that should be hidden.
Hence the behaviour will work on initial load.
@pilz
Copy link
Member

pilz commented May 13, 2020

Thank you for the pull request! We'll look at it on friday.

@pilz pilz self-assigned this May 13, 2020
@pilz
Copy link
Member

pilz commented May 15, 2020

I can see that most of the black magic setting classes and styles are not done in the pat depends pattern. So to solve the additional issues mentioned by Cornelis, we need to investigate deeper into jQuery. For now I don't see any harm with this and will merge so that Cornelis can continue testing, but we will need to expand that pattern to address the issues mentioned in #719. NB that there is no support in depends.js for transition:css.

@pilz pilz merged commit f0c7bc8 into Patternslib:master May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants