Prevent accidentally close the form

When user start process in tasklist, and fill data in the form,
they will usually click or highlighted to the area which is out of the form,
so the form is closed and user required to input all the information again.

Is there any way to prevent this action?

Thank you.

Hi @john.ng

Have a look at below post

2 Likes

It works just fine, thanks a lot!

If you don’t want to make changes to the source scripts this goal can also be achieved by setting the pointer-events to none for the whole modal and re enabling for the modal content only.

maybe not as nice as @hassang’s solution, but in my opinion a quick and easy solution

.modal-open .modal {
   pointer-events: none;
}
.modal-content {
   pointer-events: all;
}
1 Like