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

feat: add ignoredFocusElements input #50

Merged
merged 3 commits into from
Mar 23, 2023
Merged

feat: add ignoredFocusElements input #50

merged 3 commits into from
Mar 23, 2023

Conversation

riccardoFasan
Copy link
Collaborator

Hi,

Flatpickr has an undocumented option called ignoredFocusElements that takes an array of HTML elements.
When the user clicks outside the picker to close it and clicks one of these elements the event is ignored.

I recently had to handle this behavior in an Angular app I worked on it and I had to manually pass this option via the
Flatpickr instance. I thought that having a dedicated input was more convenient.

Copy link
Owner

@mattlewis92 mattlewis92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@riccardoFasan
Copy link
Collaborator Author

Thank you too!

Copy link
Owner

@mattlewis92 mattlewis92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@mattlewis92 mattlewis92 changed the title Feature: IgnoredFocusElements support feat: add ignoredFocusElements input Mar 23, 2023
@mattlewis92 mattlewis92 merged commit da15442 into mattlewis92:main Mar 23, 2023
@mattlewis92
Copy link
Owner

Released as 7.1.0 🥳

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