-
Notifications
You must be signed in to change notification settings - Fork 47.4k
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
scryRenderedDOMComponents* does not return in DOM order #2978
Labels
Comments
I seem to be seeing this bug as well |
Looks like this is fixed in master already. I'll add a test so it doesn't regress. |
sophiebits
added a commit
to sophiebits/react
that referenced
this issue
Feb 26, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the code below, I am testing a component that is a simple list. I initialize with props that result in one node. Then, I
setProps
to add another node before it. Then, I get both of them usingscryRenderedDOMComponentsWithClass
. In the DOM,test1
comes beforetest2
, but in thescry
results, that is not true. It appears to be returning the node which was inserted first.The text was updated successfully, but these errors were encountered: