Skip to content

TransitionablePortal: onClose is called even on button click when controlled #4056

Open
@lainermeister

Description

@lainermeister

Bug Report

Steps

In this sandbox, click Open Portal, then click Close Portal. Check the console.
https://codesandbox.io/s/happy-drake-yly34?file=/example.js

Expected Result

One callback of onClose triggered

CB triggered: Button closed 

Actual Result

Two callbacks of onClose triggered

CB triggered: Button closed 
CB triggered: Portal closed 

Version

"semantic-ui-react": "1.2.1"

Testcase

https://codesandbox.io/s/happy-drake-yly34?file=/example.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions