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

object is not valid in "show" anymore #2300

Closed
2 of 7 tasks
rongxike opened this issue Mar 29, 2017 · 1 comment
Closed
2 of 7 tasks

object is not valid in "show" anymore #2300

rongxike opened this issue Mar 29, 2017 · 1 comment

Comments

@rongxike
Copy link

@rongxike rongxike commented Mar 29, 2017

Help us to manage our issues by answering the following:

  1. Describe your issue:
<todo>
  
  <div each="{a}">
    <h3 show="{bl || nd}">test</h3>
  </div>
  
  <button onclick="{btn}">show</button>

  <!-- this script tag is optional -->
  <script>
    
    this.a = [1];
    this.bl = undefined;
    this.nd = undefined;
    
    var self = this;
    this.btn = function(){
      self.bl = false;
      self.nd = {a: 'a'};
    }
  </script>

</todo>
  1. Can you reproduce the issue?
    http://embed.plnkr.co/gxzZwFlvGxew0yCWfFbW/

  2. On which browser/OS does the issue appear?
    latest chrome

  3. Which version of Riot does it affect?
    v3.4.0

  4. How would you tag this issue?

  • Question
  • Bug
  • Discussion
  • Feature request
  • Tip
  • Enhancement
  • Performance
@TimWillis
Copy link

@TimWillis TimWillis commented Apr 5, 2017

I use Object for show all over the place, having this issue as well.

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
3 participants