Open eschiebel opened 1 month ago
Honestly, their basic example code needs a severe fix. Nothing works for me. Outdated Material ui etc in the example + this missing Element id error.
Sure, but I just leveraged the basic example as the shortest path to recreating the bug.
Describe the bug The documentation states that an id prop is required on Element if used within a user component. This seems to work find if the id is set to a fixed string literal like
id="bottom"
but the json gets corrupted if set via a variable.To Reproduce In the basic example
Card
, addconst [bottomid] = useState(window.crypto.randomUUID());
then change theElement
id forCardBottom
fromid="bottom"
toid={bottomid}
Expected behavior I should either be able to programmatically set an Element id, or the documentation should state this needs to be a string literal
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
Your environment