Skip to content

create modal and hide and show all script listener lost. #252

Open
@lxbzmy

Description

@lxbzmy
  • use js create modal and bind listener on content .
  • hide modal.
  • trigger show modal again.
    script bind lost.

because modal dom removed from dom tree. This not happened in official bootstrap-modal.

I add modal.appendTo($(document)); to removeContainer to solve problem

removeContainer: function (modal) {
            modal.appendTo($(document));
            modal.$container.remove();
            modal.$container = null;
        },

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