Skip to content

Can't click on the scroll bar if click outside modal close feature is enabled.  #58

@LasithaPrabodha

Description

@LasithaPrabodha

I fixed it like this in dialog-wrapper.component. Fixed onclick event not working.

closeByClickOutside() {
    const containerEl = this.container.nativeElement;
    containerEl.querySelector('.modal-content').addEventListener('mouseup', (event)=> {
      event.stopPropagation();
    });
    containerEl.children[0].addEventListener('mouseup', () => {
        this.dialogService.removeDialog(this.content);
    }, false);
  }

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