-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Data or Store references are not updated correctly inside directive #1793
Comments
@hrj Hi, please, use “keyed each” for quick workaround. I’m not sure is this correct behavior or not. |
I don't believe this is correct behavior. Keyed or not, the final DOM should be the same. The difference between the keyed and non-keyed version is that the non-keyed will just reuse whatever's already on the DOM regardless of its current state. |
@mrkishi Yes, agree. Seems it's "class"-directive specific issue. @jacwright What do you think? |
@PaulMaly It's not specific to class directive. In my project, I encountered the issue in an |
can somebody make REPL? |
@stalkerg The example can be tested when copy-pasted to REPL. (I didn't save it there because REPL asks for too many Github permissions like "read and write secret gists".) |
The each block doesn't recognise |
recognise dependencies in class directives
Fixed in 2.14.3 |
🎉 |
@hrj I meant that you still were able to switch classes without class-directive. |
Consider the following example:
After clicking on
Plan2
, it should be highlighted, but it is not. Tested with2.13.15
and2.14.2
.The above example uses
data
but the same bug is found withstore
as well.If one of the data elements is part of the rendered HTML, then everything works fine. For example, if we change the HTML above to:
then everything works fine.
The text was updated successfully, but these errors were encountered: