Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onMonthNavClick use classList in condition #1260

Merged
merged 1 commit into from
Feb 15, 2018
Merged

Conversation

dbroytman
Copy link
Contributor

@dbroytman dbroytman commented Feb 15, 2018

In out application, we use a namespaced stylesheet. I've managed to solve for this issue by adding a namespaced class to each of the flatpickr elements in the onShow hook. Here's what happens...

this....
<span class="arrowUp"></span>
becomes...
<span class="arrowUp node-1234-arrowUp"></span>

All the styling is applied perfectly, but the up and down year selector arrows don't functions because a condition expects a specific value for the class attribute. My pull request solves for this issue. Also, my code change is more inline with other conventions in your code.

Thanks!

@chmln chmln merged commit c03bc01 into flatpickr:master Feb 15, 2018
@chmln
Copy link
Member

chmln commented Feb 15, 2018

Awesome. Thanks @dbroytman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants