You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In my project, I have a weird date picker that has a normal date picker in the middle and is between 2 number inputs. The concept is similar to a date-range picker, but instead of manually picking the range, the user picks a target date and specifies a number of days before and after that specific date (this is simple to understand in timelines and calendar views for the target user).
I'll leave you a screenshot for reference.
The issue that I found myself in is that whenever I click on one of the number inputs and I have the popper open, it rightfully closes.
What I need to do is check if the clicked element is one of the 2 numeric inputs, but on the onClickOutside function that you can pass through the config object, it doesn't seem to forward the event from the actual listener.
Describe the solution you'd like
It would be nice to have the event passed to the onClickOutside function that I pass to the config object, similar to the validateBeforeEmit function that is already being passed.
Describe alternatives you've considered
I'm sure that I can do some weird thing with listeners and refs to do this, but it's not the cleanest solution
Additional context
I took a look at the source code and I can submit a PR myself, but first I wanted to make sure with you if there are any potential issues and/or reasons you didn't do this already, or if there's a better way to implement/do this, just like the PR guidelines say to do :)
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
In my project, I have a weird date picker that has a normal date picker in the middle and is between 2 number inputs. The concept is similar to a date-range picker, but instead of manually picking the range, the user picks a target date and specifies a number of days before and after that specific date (this is simple to understand in timelines and calendar views for the target user).
I'll leave you a screenshot for reference.
The issue that I found myself in is that whenever I click on one of the number inputs and I have the popper open, it rightfully closes.
What I need to do is check if the clicked element is one of the 2 numeric inputs, but on the
onClickOutside
function that you can pass through the config object, it doesn't seem to forward the event from the actual listener.Describe the solution you'd like
It would be nice to have the event passed to the
onClickOutside
function that I pass to the config object, similar to thevalidateBeforeEmit
function that is already being passed.Describe alternatives you've considered
I'm sure that I can do some weird thing with listeners and refs to do this, but it's not the cleanest solution
Additional context
I took a look at the source code and I can submit a PR myself, but first I wanted to make sure with you if there are any potential issues and/or reasons you didn't do this already, or if there's a better way to implement/do this, just like the PR guidelines say to do :)
The text was updated successfully, but these errors were encountered: