-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
ordering of classes different when reordering or re-adding #926
Comments
Thanks for the issue! And thanks for the interest in fixing this, it's much appreciated 👍 Here's the relevant code: https://github.com/yewstack/yew/blob/master/src/virtual_dom/vtag.rs#L198 Hope this helps! |
The issue is directly related to diff_classes and stdweb's I would like to suggest the following solution: E.g. diff_classes for the classes sets I will try implementing this approach, since it only affects the implementation of diff_classes. |
Problem
If changing the order of classes on an element (or re-adding classes to an element) does not reflect the specified order in the DOM of the browser.
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
After the update of the order of the classes i expected the following:
Test Code
This is the result when starting this with
cargo web start
and clicking the button once:Steps To Reproduce when re-adding classes
When re-adding classes the order is also lost:
class-2
in the view, after an update occured:class-2
in the view, after an update occured:Expected behavior when re-adding classes
After re-adding
class-2
, i expected the following:Environment:
Questionnaire
The text was updated successfully, but these errors were encountered: