scope differs between `if` and `show` #2125

tamamachi opened this Issue Nov 30, 2016 · 3 comments


None yet

3 participants

tamamachi commented Nov 30, 2016 edited
  1. Describe your issue:

You specify if conditions to the nested tag, and you can access to the variables of current tag inside the value expression of if.
However, If you use show instead of if, you cannot access to the variables of current tag inside the value expression.

This mismatch of behaviors is confusing.
I think the behavior of if might be the right one.

  1. Can you reproduce the issue?

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

Google Chrome for macOS 53.0.2785.143 (64-bit)

  1. Which version of Riot does it affect?


  1. How would you tag this issue?
  • Question
  • Bug
  • Discussion
  • Feature request
  • Tip
  • Enhancement
  • Performance

I agree thanks this should be improved

@GianlucaGuarini GianlucaGuarini added the bug label Dec 3, 2016

This should be fixed soon, stumbled on it a lot of times allready...

It also confuses the users as to which is the right approach... Coding inconsistency is the number one reason to stop using a library

@GianlucaGuarini GianlucaGuarini added a commit that closed this issue Dec 13, 2016
@GianlucaGuarini GianlucaGuarini closes #2125 9e024dd

this issue is not yet fixed my patch was creating other issues..I need to find a better solution for this problem

@GianlucaGuarini GianlucaGuarini removed the fixed label Jan 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment