If I’m selecting add or edit form as modal dialog ,
how can let it keep focus?
If you want to focus to a field, use jQuery focus (i.e., $(“selector”).focus()).
Thanks for your reply
I want focus to a form , so the form will be active until I close it.
Current opinion of modal form is disappearing win I click menu or background.
You may add the data-backdrop attribute to the modao dialog by jQuery, see:
https://getbootstrap.com/docs/4.0/components/modal/#options