Error toggling child with multiple mixins #2100

Closed
coffeebite opened this Issue Nov 26, 2016 · 1 comment

Projects

None yet

2 participants

@coffeebite
  1. Describe your issue:

Say I have the following tag:

<parent>
  <child if="{showChild}"></child>
</parent>

If showChild resolves to true and then false, you get the following javascript error if the <child> tag has more than one mixin mixed in:

Cannot read property 'removeChild' of null
  1. Can you reproduce the issue?
    With only one mixin (works): https://plnkr.co/edit/Qze8P2NSZcHDSEsJ1xc1
    With two mixins (doesn't work): https://plnkr.co/edit/FOjzXT7L2dxZGbLRu46l

  2. On which browser/OS does the issue appear?
    Chrome/macOS Sierra

  3. Which version of Riot does it affect?
    3.0.0

  4. How would you tag this issue?

  • Question
  • Bug
  • Discussion
  • Feature request
  • Tip
  • Enhancement
  • Performance
@GianlucaGuarini GianlucaGuarini added the bug label Nov 26, 2016
@GianlucaGuarini
Member

Thanks that's a bug

@GianlucaGuarini GianlucaGuarini self-assigned this Nov 26, 2016
@GianlucaGuarini GianlucaGuarini added a commit that referenced this issue Nov 26, 2016
@GianlucaGuarini GianlucaGuarini Merge branch 'dev' into bug/2089
* dev:
  closes #2100
a1aabc4
@GianlucaGuarini GianlucaGuarini added a commit that closed this issue Nov 26, 2016
@GianlucaGuarini GianlucaGuarini closes #2100 8ce8dee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment