I have a form that I'm using with Bootstrap 4 beta form validation. It works nicely except for the invalid-feedback class. The feedback div displays correctly at first like so:
But when I make the field valid, the field is highlighted in green but the invalid-feedback div isn't hidden.
I followed the HTML as in the docs:
<form name="signup" id="needs-validation" novalidate>
<h1 class="text-center">Signup</h1>
<div class="form-group">
<label for="name">Name</label>
<input type="text" class="form-control" id="name" maxlength="255" v-model="user.name" required>
<small class="text-muted">Your full legal name.</small>
<div class="invalid-feedback">
Please enter your name.
</div>
</div>
...
When the user submits the form, the below JavaScript function is executed.
signup () {
let form = document.getElementById('needs-validation')
if (form.checkValidity()) {
axios.post('http://localhost:3000/accounts', this.user).then(response => {
console.log(response)
}).catch(error => {
console.log(error)
})
}
form.classList.add('was-validated')
}
And the form is indeed valid in the picture above, and the POST is happening, but the feedback text is still visible...

