We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When use yield, value of this.opts will be undefined.
this.opts
undefined
ℹ️ This bug only occurs on v2.6.2.
<my-tag> <my-container> <my-x message={ message }></my-x> </my-container> <script> this.message = 'hello there' </script> </my-tag>
<my-container> <yield /> </my-container>
<my-x> <h1>{ message }</h1> <script> this.message = this.opts.message // <- undefined /* console.log(this.opts) => { message: undefined } */ </script> </my-x>
Repoduce Code http://plnkr.co/edit/ffnPUvlfqkiPmN8G3Da3?p=info
Riot: 2.6.2
Thanks. 🍕
The text was updated successfully, but these errors were encountered:
closing duplicate of #1866 #1973 riot yield tags expressions get evaluated using the values of the tag where they get injected
Sorry, something went wrong.
No branches or pull requests
When use yield, value of
this.opts
will beundefined
.ℹ️ This bug only occurs on v2.6.2.
Repoduce Code
http://plnkr.co/edit/ffnPUvlfqkiPmN8G3Da3?p=info
Riot: 2.6.2
Thanks. 🍕
The text was updated successfully, but these errors were encountered: