It is necessary after the selected values ​​in the drop-down list by clicking on the button to set the default state of the component: without selected elements and with placeholder-inscription.

How can I do that? Or so that you can clear the selected value in the drop-down list. I tried to access the component through refs, get to the value value and change it to an empty line, but then the value is overwritten in the component. And I do not need it. It is only necessary that the field itself is cleared, and all the values ​​of the list are preserved.

  • Such questions should be accompanied by a code so that there is something to help. - Alexandr Tovmach

0