finos / openfin-react-hooks

A collection of React Hooks built on top of the Openfin API - from Scott Logic
Apache License 2.0
48 stars 18 forks source link

Bugfix: Add child window on close listener #26

Closed AugusteBa closed 5 years ago

AugusteBa commented 5 years ago

This PR addresses the following issue:

When a childWindow (managed by useChildWindow hook) is closed manually by clicking on X rather than programmatically using childWindow.close(), windowRef still is an object when in fact is should be reset to null.