While developing a web app using React/Bootstrap, I encountered a bug where the required textarea is highlighted in red as soon as the form is opened, before clicking submit.
You can view the issue in this Imgur album (first picture shows the form opened, second picture shows after clicking submit) - https://i.sstatic.net/hswvH.jpg
I attempted several solutions, with the only successful one being removing the required tag (which is not an ideal solution).
Here is the code snippet for the textarea:
<textarea
className="form-control"
name="ticketNewDetailedInfo"
rows="5"
value={this.state.ticketNewDetailedInfo}
onChange={this.handleInputChange}
required
/>
The textarea should only be highlighted in red if it is empty when the user submits the form, not upon opening the form.