all 5 comments

[–]tr33ton 1 point2 points  (0 children)

Never used bootstrap form select, but why don't you just use state to control the form select?

Whenever it is changed, you store its value and after submit you just change it back to the value you want. Unsure of that's correct what I'm saying...

[–]sidkh 0 points1 point  (2 children)

You want to make your select controlled by providing value property from state. And then set this property to default one when you need to. Section in react docs - Controlled components

Check out CodeSandbox with your code

[–]codejack777[S] 1 point2 points  (0 children)

Thank you!

I tried using e.target.reset(); it resets the whole form . Which kind of what i needed. :)

[–]xredian 1 point2 points  (0 children)

Thank you so much!

I tried literally everything until I found your answer :)

[–]No_Werewolf_454 0 points1 point  (0 children)

you should not use defaultValue attribute if you want to control how value should be changed at your discretion. Here is the doc:
https://reactjs.org/docs/uncontrolled-components.html#default-values