-
Notifications
You must be signed in to change notification settings - Fork 50
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
Access to Current/Previous Frame Element #111
Comments
I think this attribute |
I agree that built-in would be nice, but there may be other use cases that require access. |
I prefer not to expose DOM element to the api surface in a React component, if there's some use case do need this, we may do it the DOM-way. |
The use case I’m looking to support is focusing the current frame after animation. This enables a screen reader to start reading immediately instead of the user having to move backward to find the element. This could also be done in a different way by updating the proper I understand your reluctance, The problem I see is maintaining a DOM reference during re-renders. Using a DOM method that returns a live The other issue is that since there are no hooks for |
I'll keep this in mind to see if I can make it easier while rewriting :D |
Thanks for being so open to my feedback :) |
Thanks for the addition! |
I'm looking for some way to manipulate attributes for the current and previous frames.
For example, I'd like to toggle
aria-hidden
to be true/false depending on if the frame is showing or not.I could do it in a widget using
findDOMNode()
and theindex
prop, but I'm hoping there is a better way. Passing these asref
s to widgets is one idea. What do you think?The text was updated successfully, but these errors were encountered: