Open lonlazer opened 2 years ago
Any update about this? besides manually converting the id to a string? Any other solutions to this issue?
Any update about this? besides manually converting the id to a string? Any other solutions to this issue?
I have fixed it in our fork https://github.com/mercedes-benz/dash-draggable/tree/bugfix/dict_as_id Since no one seems to merge PRs, I did not bother to open another PR.
To use it, you would have to build the package by yourself and install it manually: https://github.com/MehdiChelh/dash-draggable/blob/5fd5d87c6aaa0a1bd4e666540d693314a03ac616/README.md
When Python dicts are used as element id, all of the elements get the same React key
[object Object]
because dicts are not stringified correctly. Because of this, all elements are on top of each other.Being able to use dicts as element ids is especially important for Pattern-Matching Callbacks.
Example:
Léon Lazar leon.lazar@mercedes-benz.com on behalf of Mercedes-Benz Tech Innovation GmbH, Imprint