Skip to content

Releases: wethegit/react-modal

v3.2.0

Choose a tag to compare

@github-actions github-actions released this 30 Jan 17:54

Minor Changes

Patch Changes

v3.1.0

Choose a tag to compare

@NicholasLancey NicholasLancey released this 08 May 21:33
afe3ed2

Description

Upgrades library to support React 19.

v3.0.0

Choose a tag to compare

@github-actions github-actions released this 20 Aug 16:05
263435c

Major Changes

  • #79 6c0e7f9 Thanks @andrewrubin! - - Removed appendToBody prop.

    • The appendToBody prop has been removed. This prop was previously used to determine whether the modal should be appended to the body element.

    • Added renderTo prop.

      • Introduced the renderTo prop, which accepts an HTMLElement where the modal will be appended. This provides greater flexibilty, allowing users to specify any element to render the modal, including the body. This change enhances the customization options for the modal rendering.
    • Mark argument of hook as optional #62

    • Before

      <Modal appendToBody={true} />
    • After

      <Modal renderTo={modalRef} />

v2.2.2

Choose a tag to compare

@github-actions github-actions released this 29 Mar 00:11
fe21b6b

Patch Changes

v2.2.1

Choose a tag to compare

@github-actions github-actions released this 26 Mar 19:54
d02ec0a

Patch Changes

v2.2.0

Choose a tag to compare

@github-actions github-actions released this 29 Jan 23:55
f951271

Minor Changes

v2.0.2

Choose a tag to compare

@github-actions github-actions released this 04 Dec 17:37
66789a2

Patch Changes

  • #12 f603cd2 Thanks @marlonmarcello! - Fixes and issue where the modal would lock the body even though appendToBody wasn't set to true

v2.0.1

Choose a tag to compare

@github-actions github-actions released this 29 Nov 22:18
14ff74c

Patch Changes

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 22:40
e5c034e

Major Changes

  • #7 4512c52 Thanks @marlonmarcello! - # V2

    Breaking changes

    Seriously, everything.

    Why

    The old design of the modal was good but it had an achilles heel, it used an internal context to handle the transition and syncing that with the state which caused:

    1. Actions to be tied to a context, adding custom components to close the modal for example was a bit annoying
    2. Animation and state were too tightly coupled and not exposed for further customization

    What's new

    The modal is now a controlled component, you can control the state of the modal from outside using the hook useModal which also exposes the state so you can use further customize the Modal and even the child components.

v1.0.2

Choose a tag to compare

@marlonmarcello marlonmarcello released this 20 May 00:54
v1.0.2