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

PDOM order seems to change as you interact with kittens #26

Open
marlitas opened this issue Nov 1, 2024 · 2 comments
Open

PDOM order seems to change as you interact with kittens #26

marlitas opened this issue Nov 1, 2024 · 2 comments
Assignees

Comments

@marlitas
Copy link
Contributor

marlitas commented Nov 1, 2024

While meeting with @catherinecarter and @terracoda we noticed that the kittens' tab order seemed to constantly be changing based on the interaction.

Screen.Recording.2024-11-01.at.12.34.34.PM.mov

To Reproduce

  1. tab to the first kitten
  2. move it with arrow keys
  3. tab again (you exit the kittens completely)

We should still have remaining kittens to tab through.

I would like @jessegreenberg's help on this since I am not aware of how the PDOM determines order.

@jessegreenberg
Copy link
Contributor

The default traversal order comes from the order in the scene graph. If there is a moveToFront somewhere it will impact the traversal order. After moveToFront, the kitten will be the last item in the parent's children order, and also the last item in the parent's traversal order.

This can be fixed by setting an explicit pdomOrder on the parent of the kittens so the moveToFront doesn't change it.

@jessegreenberg jessegreenberg removed their assignment Nov 1, 2024
@marlitas
Copy link
Contributor Author

marlitas commented Nov 1, 2024

@jessegreenberg oh that's definitely it then. Thanks so much!

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

No branches or pull requests

2 participants