UXP shows content from another select box in UI but internally has different values.
Is the DOM on the left generated by React or just a vanilla HTML file?
I assume the “px” list is one of the other dropdowns further below?
This is react and what you see are the DevTools.
Also, other fields have more than 3 options.
But after PS restart I didn’t see that bug. So am no sure if this will pass Marketplace review.
I had something similar with the dropdowns in my first uxp project, in my case this was referable to missing “key” attribute that React uses to track down changes done to the (virtual) dom.
After I made sure the component and its children had unique “key” attributes (something with Math.random or a uuid helper), the dropdown contents were fine again.
Yes that could help…
Did you ever find a solution to this? I’m currently seeing this happen for me
edit: I don’t know, it’s now not happening. I’ll write it off as a weird outlier.
It is not an issue anymore for me. Maybe it was because of key
in React? Also I moved to sp-
components.
I think it ultimately was the key issue, I was missing a key on one dropdown and had them on the others.