-
Notifications
You must be signed in to change notification settings - Fork 253
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels