Skip to content

When there is an Overlay inside the Overlay, pressing the outside of the Overlay does not close the Overlay inside #737

Open
@aooen

Description

현재상황

2022-03-07.2.29.15.mov

재현 방법

const handleHideOverlay = useCallback((event: any) => {
if (!event.target?.closest(Styled.Overlay)) {
onHide()
if (!enableClickOutside) {
event.stopPropagation()
}
}
}, [
enableClickOutside,
onHide,
])

현 구조상 Overlay 내부에 Overlay가 있으면 바깥 Overlay를 눌러도 닫히지 않습니다.
바깥 오버레이의 바깥 부분을 클릭하면 정상적으로 닫힙니다.

기대한 동작

실제 동작

Reference

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugIssues related to anything that isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions