Hey iam writing piece of code in vue.js. I have problem with checkboxes. I have two of them and they are connected with my backend. They look like this:
<b-form-checkbox
v-model="selectedUser.institutionPersonRelations[0].communicationBlocked" @change="editBlockOfCommunication({institutionId:selectedUser.institutionPersonRelations[0].id, profileId:selectedUser.id})">
</b-form-checkbox>
<b-form-checkbox v-model="selectedUser.institutionPersonRelations[0].uploadBlocked" @change="editUploadBlock({institutionId:selectedUser.institutionPersonRelations[0].id, profileId:selectedUser.id})" :disabled="selectedUser.institutionPersonRelations[0].communicationBlocked == true">
</b-form-checkbox>
Everything working correctly until i check second checkbox and then check first checkbox and then uncheck first checkbox. First changing value X and Y in database. Second changing value Y in database. In this case database in updated correctly but second checkbox even if is set to false is still checked, and i need to reload the page to update it.
Aucun commentaire:
Enregistrer un commentaire