Riot: 3.6.2 can not call self.update() inside .on("mount") anymore

Created on 20 Aug 2017  路  3Comments  路  Source: riot/riot

Help us to manage our issues by answering the following:

  1. Describe your issue:
    Prior versions allow call self.update() inside .on("mount") event,

  2. Can you reproduce the issue?
    var self = this;
    this.on("mount", function(){
    self.update()
    });

this.on("updated", function(){
alert("i should fire.");
});

Post the link using one of our bug report templates:

  1. On which browser/OS does the issue appear?

  2. Which version of Riot does it affect?
    3.6.2

  3. How would you tag this issue?

    • [ ] Question
    • [x] Bug
    • [ ] Discussion
    • [ ] Feature request
    • [ ] Tip
    • [ ] Enhancement
    • [ ] Performance
bug fixed

Most helpful comment

fixed in [email protected] thanks for reporting it

All 3 comments

I can confirm this bug, my UI is broken since riot 3.6.2 :(

It looks like an issue that happens with mounted children tags, here's a reproduction (uncomment top scripts to see both riot js versions)

https://plnkr.co/edit/1mb1RZkjofTpgxwQ8Eni?p=preview

fixed in [email protected] thanks for reporting it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

awei01 picture awei01  路  3Comments

etamponi picture etamponi  路  3Comments

laznic picture laznic  路  3Comments

danawoodman picture danawoodman  路  3Comments

ShiMeiWo picture ShiMeiWo  路  3Comments