-
Notifications
You must be signed in to change notification settings - Fork 33
Dash-renderer will not render wildcard attributes #51
Comments
Hm, at first glance I'm actually not quite sure. I'll pull down the branches and take a look |
Looking at the React tree (I use the react devtools: https://github.com/facebook/react-devtools), it looks like the Looking into the network request ( So, I suspect the issue has to do with serializing the component. Indeed, using the JSON serializer:
This serialization happens here: https://github.com/plotly/dash/blob/ff93d2c4331a576b445be87bb3b77576f18b030a/dash/dash.py#L159-L167 The |
to fix. |
I added in plotly/dash-html-components#40 a wildcard attribute to handle the HTML data-* attributes.
This works fine for adding a data-* attribute to an object, and within callbacks you can update this value and use it to correctly to update other callbacks.
However, this attribute is not injected into the HTML on the client side, and it cannot be used to interact with javascript and css on the client side?
Any idea where to start for fixing this issue? I am guessing that there is a subset of properties that are actually rendered in HTML on the client side, and I could add wildcard attributes there. I am having trouble finding the piece of code that does this.
The text was updated successfully, but these errors were encountered: