-
Notifications
You must be signed in to change notification settings - Fork 97
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
An Option to Use Native DOM Events Instead of Synthetic Events #87
Comments
Hey Norigin Media Team, just following up on this to see if you have any thoughts or recommendations. Thanks! |
Hello @miketheodorou! Could you give a simple usage example based on your request here? We've implemented a lot of accessibility related stuff and have not seen this need ourselves, so an example would help to better understand. Thanks in advance. |
Thanks for the response @predikament! I'll get a little POC built and sent over to you when I get some free time. |
Hey @predikament, I created a small POC to demonstrate the issues that I am having. When I initialize the library with the following invocation, the
I would prefer to not have to pass I would expect the behavior to work the way it does when you comment out the Basically, I would like the library to move through the elements with the same logic it does, but not disable the Here are a couple videos as well that outline what I am describing. With Without |
@miketheodorou: Thanks for the POC and the videos! We'll have a look. (@asgvard: ⬆️) |
@miketheodorou: Hello again! Busy weeks right now, but we've added a task to look into this issue and will be starting on it hopefully soon; Just so you know there's some activity on this topic. |
Status Update: The pull request #105 has been approved. It will be incorporated into the upcoming release, effectively addressing the associated issue. |
@Braggiouy Thank you! Very excited to try this out. I appreciate you all adding this. |
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Similar to the
shouldFocusDOMNode
option for the lib initialization, would you be able to add a flag likeshouldUseNativeEvents
? It would be much easier to write accessible HTML and tests if I could use native events (like onClick) instead.Also, the
Link
component fromreact-router-dom
does not work by default with this library. We instead have to create a synthetic Link and use the library'snavigate
function, instead of letting the library natively do its thing.Describe the solution you'd like
A clear and concise description of what you want to happen.
Either
init({ shouldFocusDOMNode: true })
should handle allowing the DOM / React events to come through on the focused nodes, or there should be another flag likeinit({ shouldFocusDOMNode: true, shouldUseNativeEvents: true })
.Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
If we could key off the flag passed into the initialization config, perhaps we could not call
event.preventDefault
andevent.stopPropagation
in thebindEventListeners
method.Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: