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

Parent tag data-is is reset when disabling a nested tag with if="... #2311

Closed
vzdor opened this issue Apr 7, 2017 · 0 comments
Closed

Parent tag data-is is reset when disabling a nested tag with if="... #2311

vzdor opened this issue Apr 7, 2017 · 0 comments
Labels

Comments

@vzdor
Copy link

@vzdor vzdor commented Apr 7, 2017

<div data-is="message"></div>

When there is a nested tag in the message tag with an "if" attribute:

<message>
   <editor if="{editing}"></editor>

If I update the message tag with editing=false, then data-is, on the parent tag, is set to null.
It works if I wrap the editor tag in a div:

<div><editor if="{editing}"></editor></div>
  1. Can you reproduce the issue?
    http://plnkr.co/edit/BzcSx89AzIX3wn0npZKl?p=preview
    Click the Close link and notice that the background (scoped class) is not applied.

  2. On which browser/OS does the issue appear?
    Firefox 45, Chromium 57

  3. Which version of Riot does it affect?
    3.2, 3.4

  4. How would you tag this issue?

  • Question
  • Bug
  • Discussion
  • Feature request
  • Tip
  • Enhancement
  • Performance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.