-
Notifications
You must be signed in to change notification settings - Fork 2k
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
title attribute #97
Comments
Would you be able to show more context about this issue? |
Acually that fiddle didn't trigger the bug for me eighter... Here's the exact code that consists of two simple files. That will trigger the bug for sure. |
I haven't been able to reproduce this with your sample files either. Maybe just a matter of updating your repository? We are doing a big update on [stable] today, so you may want to wait until this afternoon to update. Fwiw, you can also use toolkit without any repository by loading 'toolkit.min.js' from here: http://toolkitchen.github.io/cdn/toolkit.min.js Here is your example in JsBin using the above toolkit file: It doesn't fail, but to be fair it doesn't use the 'import' either. Fwiw, I did test your exact code here with the 'import' and never saw it fail. |
Aha, I lied, the jsbin did ultimately fail! I will look into this. |
So, we don't 100% understand the mechanism yet, but the essential problem here is that 'title' is already a DOM attribute. So the underlying DOM objects are causing something to unexpected to happen. When we change it to 'label' the problem goes away (at least, it hasn't failed yet). Note that using latest 'toolkit' to can't set 'label' via attribute unless you mark it as an 'attribute'. Iow, to do <my-tag label="Hello"></mytag> you need to do <element name="my-tag" attributes="label">
... as here: http://jsbin.com/otuzus/6/edit |
Yes. I suspected it had something to do with the title itself being already used in DOM. But I felt it might be worth reporting anyways since it behaved so unexpectedly and random. |
I can no longer reproduce this. @sjmiles, was there any trick to repro other than waiting? |
Closed in favor of #123 |
This might be expected behavior, but I'll report it anyway.
When using title as attribute to a component, very strange things happen. First it appears to function ok, but after 10-20 seconds the title resets to the default value. In the example below the component renders "An Event" as title at first. Then randomly it changes to "No Title".
My example markup:
Component code:
The text was updated successfully, but these errors were encountered: