-
-
Notifications
You must be signed in to change notification settings - Fork 144
dcc.Checklist() gives error loading layout #440
Comments
I am having the same trouble while trying to populate a checklist depending on user input from a dropdown. I don't think it's the way I've set up the code since changing the component to another Dropdown allows it to work just fine |
Thanks for bringing this one back up @tmbluth. The issue is something about omitting the BTW just a heads up - in the next version of dash we're planning to change |
As it turns out, So in fact the immediate problem here will go away when we switch from We could fix serialization just by skipping any props inherited from the base But if that's all we do, we could still be vulnerable to more subtle bugs if anyone actually wants to use these inherited methods, and fatal bugs if someone made a component with a property like So what's the right way to handle this? Blacklist all the attribute names we use in Python? Possible, but who's to say we won't need to add to that list when we add another language (cc @rpkyle). We could make it easier by blacklisting leading underscores (would that be a problem for any of our existing components? Would we be worried about this for 3rd-party components?) but we'd still have all these:
TBH it's not clear to me how we benefit from |
Oh also |
A dcc.Checklist in the layout results in
error loading layout
:Stack trace:
The text was updated successfully, but these errors were encountered: