SuperBrain
SuperBrain
CC#
Created by SuperBrain on 8/12/2022 in #help
Blazor Server, Bootstrap modal, dismiss after validation
In my Blazor Server app, I have a page that's used to add/edit database records (using EF, of course). I would like to add a modal for add/edit actions, but I need it to only dismiss (close) after all validations have passed. By default, buttons in modal don't dismiss it automatically unless you add data-bs-dismiss="modal" to them, so my question is - how would I perform certain action on button click and only dismiss the modal after all validations have passed?
8 replies