I use the select from the jimu-ui .
Here is my question. I have a clear button to enable the user to reset all the controlled components on the ui to their original state. I am using the placeholder for the select. How do I display the placeholder value when the clear button is pressed?
I can use the setState to return the Select to its original value, but not the placeholder text on the display.
Use of the ref won't help since it doesn't re-render.
Not sure this helps with out visually seeing it, but I have call a function in side script, but outside the main code and call the function in the button via onclick=function(). You can create a placeholder using label in html.