Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

mdPanel -allow clickOutsideToClose works with propagateContainerEvents #9388

@ivan-zakharchuk

Description

@ivan-zakharchuk

Actual Behavior:

  • Currently mdPanel by default use body element as parent and have wrapper(.md-panel-outer-wrapper) with styles { height: 100%; left: 0; position: absolute; top: 0; width: 100%; } so we must use propagateContainerEvents: true (pointer-events: none;) to be able to interact with page elements. But in this case clickOutsideToClose:true doesn't work at all.
  • When clickOutsideToClose:true is specified along with propagateContainerEvents: true it should close our panel when user clicks somewhere on page, but also propagate this event to a target.

CodePen (or steps to reproduce the issue): *

  • You could observe this in demo example in docs for 1.1.0
  • N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions