Skip to content

Why not appending:false by default? #74

@guizoxxv

Description

@guizoxxv

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions