Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
The data-is attribute is not updated for dynamic tags #2037
Please check the example http://plnkr.co/edit/VXXbDHz1ZgUjRwUwLTev?p=preview
I tried to fix this. I think the problem is that the data-is is not updating the value when the update() is executed. If we force it, it will work. In your sample, using setAttribute
I tried to look at the riot source, and created this minimal test
with the tag:
I think that in
How the update method works? It´s iterate over the element attributes? because I added some console.logs and saw that it access the ref attribute but not the data-is attribute.
Is there a way to debug the riot code better that using logs anywhere? I tried the karma debug, but it uses the minified version and is hard to follow. Any suggestion?