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

Fix data-toggle button on mobile #1285

Merged
merged 2 commits into from
May 3, 2018

Conversation

jacobmllr95
Copy link
Contributor

Currently the data-toggle button doesn't work on mobile. This is due the .click() event triggering on the mobileInput doesnt show the mobile date picker.
Triggering a focus event with .focus() makes the mobile date picker show up as expected.

This commit also enables passing through the event param from the toggle() method to the open() method.

Currently the `data-toggle` button doesn't work on mobile. This is due the `.click()` event triggering on the `mobileInput` doesnt show the mobile date picker.
Triggering a focus event with `.focus()` makes the mobile date picker show up as expected.

This commit also enables passing through the `event` param from the `toggle()` method to the `open()` method.
@chmln chmln merged commit 8d34783 into flatpickr:master May 3, 2018
@jacobmllr95 jacobmllr95 deleted the fix-toggle-on-mobile branch July 6, 2018 07:35
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