web-widgets icon indicating copy to clipboard operation
web-widgets copied to clipboard

fix: html element id on single element

Open Andries-Smit opened this issue 1 month ago • 1 comments

HTML Element widget cause error in the log

Warning: Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.%s at HTMLTag (http://naviva.local:8080/dist/HTMLElement-JMsVPxAr.js:1503:40)

When not using a tagUseRepeat the there is no key set, as item?.id will be empty This will cause an issues when the the HTML Element widget is placed multiple times in the same parent.

Solution set key to the name of the widget.

Andries-Smit avatar Nov 07 '25 10:11 Andries-Smit

related https://github.com/mendix/web-widgets/pull/1966/files

gjulivan avatar Nov 10 '25 08:11 gjulivan