Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Technical problems when using BootstrapModal #3209

@SilverYoCha

Description

@SilverYoCha

Technical errors occurs when showing a modal dialog extending BootstrapModal.

To Reproduce
Extending BootstrapModal:

  const MyModalDialog = BootstrapModal.extend({
    id: "my-modal-dialog",
    initialize : function() {
      ...
    },
    ...
  });

And showing it:

  function showMyDialog(ev) {
    ev.preventDefault();
    const chatView = getChatViewFromElement(ev.currentTarget);
    const myDialogModel = new Model();
    _converse.api.modal.show(MyModalDialog, {
      'model': myDialogModel,
      'chatroomview': chatView
    }, ev);
  }

Then occurring javascript errors:
image

Expected behavior
The modal dialog opens without any javascript error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions