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

Error when unmount tag that contains ref element #2083

syuilo opened this Issue Nov 23, 2016 · 0 comments


None yet
2 participants

syuilo commented Nov 23, 2016

Help us to manage our issues by answering the following:

Describe your issue:

Error occured when unmount tag that contains ref element.

  <div ref='test'></div>
  <button onclick={ unmount }>unmount</button>

Uncaught TypeError: Cannot read property 'setAttribute' of undefined(…)

For details, please refer to the example below.

Can you reproduce the issue?

If without ref attribute, no error occurs:

Which version of Riot does it affect?


How would you tag this issue?

  • Question
  • Bug
  • Discussion
  • Feature request
  • Tip
  • Enhancement
  • Performance

Thanks, Great lib! ❤️ cheers 🍺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment