You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a problem with bpopup because my click event only opened a modal on the first time. Here is the problem:
I'm using jquery next() method to select the next sibling with class of 'modal' and open as modal window but by default the modal element was being removed from it's current DOM position and appended to body when opened. So there was no next sibling with class of modal after the first click. The solution was to change the bpopup 'appending' option to false.
I understand why the appending option is useful but I don't get why the default behavior is to append to body. For me it makes more sense for the modal to open where it is by default.
Thank you.
The text was updated successfully, but these errors were encountered:
I had a problem with bpopup because my click event only opened a modal on the first time. Here is the problem:
I'm using jquery next() method to select the next sibling with class of 'modal' and open as modal window but by default the modal element was being removed from it's current DOM position and appended to body when opened. So there was no next sibling with class of modal after the first click. The solution was to change the bpopup 'appending' option to false.
I understand why the appending option is useful but I don't get why the default behavior is to append to body. For me it makes more sense for the modal to open where it is by default.
Thank you.
The text was updated successfully, but these errors were encountered: