Skip to content

Release: v3.0.0#65

Merged
marlonmarcello merged 15 commits into
mainfrom
release/v3.0.0
Jul 30, 2024
Merged

Release: v3.0.0#65
marlonmarcello merged 15 commits into
mainfrom
release/v3.0.0

Conversation

@andrewrubin
Copy link
Copy Markdown
Member

@andrewrubin andrewrubin commented Jul 30, 2024

Release: v3.0.0

Time tracking: https://wethecollective.teamwork.com/app/tasks/22769488

Description

This PR adds an API change to the <Modal> component, such that it removes the appendToBody boolean prop, and adds an appendTo prop, which expects an HTMLElement. appendTo is required.

This also fixes a bug in which the useModal hook had to have an input in order to work properly. The default input is now an empty object {}.

Does this close any open issues?

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jul 30, 2024

🦋 Changeset detected

Latest commit: 789ab3a

The changes in this PR will be included in the next version bump.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Feature: Added renderTo prop instead of appendToBody
@marlonmarcello marlonmarcello marked this pull request as ready for review July 30, 2024 17:35
@marlonmarcello marlonmarcello self-requested a review July 30, 2024 17:35
@marlonmarcello marlonmarcello merged commit 483a312 into main Jul 30, 2024
@marlonmarcello marlonmarcello deleted the release/v3.0.0 branch July 30, 2024 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mark argument of the hook as optional Remove appendToBody in favour of a renderTo prop that allows a selector or DOMNode to be passed

4 participants