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

Best way to restore default active child when entering / leaving a parent? #59

Open
jfrux opened this issue Feb 28, 2020 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@jfrux
Copy link

jfrux commented Feb 28, 2020

When user navigates down to the player controls on TV I'm wanting it to always be on the play/pause button by default but it's currently just focusing the far left.

I'm not sure indexAlign is what I want for this situation but maybe it is?

I didn't understand the indexRange thing as it doesn't seem to make sense for me here since it's technically not a grid, I mean I can think of it like one... but not sure its very expressive.

UPDATE:
Part of me wants like... a "willActive" or "beforeActive" to ensure the proper child is active but not sure if that makes sense.

UPDATE 2:
If I use onActive of the parent to setActiveChild it doesn't seem to trigger the other events for other children that were previous active such as onLeave or onMove, etc. Maybe I'm missing the entire point of them or something.

@jfrux jfrux added the enhancement New feature or request label Feb 28, 2020
@jfrux
Copy link
Author

jfrux commented Feb 28, 2020

Figured out a solution for this but maybe still something to put in the back of our minds.

Thanks again for all you guys do! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant