-
Notifications
You must be signed in to change notification settings - Fork 777
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
Properties depending on children don't take effect when set in current cycle #338
Comments
Probably a duplicate of #289. |
Not sure if this will help you, but I had the same issue and managed to find a solution without changing the virtual-dom source code (I am using mercury). I used a Widget instead of a hyperscript vnode so I have control over the diffing & patching. Here are some docs that may help you: https://github.com/Matt-Esch/virtual-dom/blob/master/docs/widget.md |
What's the status of this? Doesn't seem that PR #339 is considered to be merged? |
Like
scrollTop
: http://codepen.io/anon/pen/MaMEWg?editors=001 (notice how the div doesn't scroll to the bottom.)This is because property patches are applied before the children nodes have been patched. It seems though that properties like
scrollTop
depend on the childrens' state so that they can take effect.Applying property patches after all other node patches would fix this.
The text was updated successfully, but these errors were encountered: