Skip to content

Commit

Permalink
Merge pull request #80 from wethegit/changeset-release/main
Browse files Browse the repository at this point in the history
Version Packages
  • Loading branch information
andrewrubin authored Aug 20, 2024
2 parents a985223 + 14a86e1 commit 263435c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 26 deletions.
25 changes: 0 additions & 25 deletions .changeset/blue-dogs-know.md

This file was deleted.

26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# @wethegit/react-modal

## 3.0.0

### Major Changes

- [#79](https://github.com/wethegit/react-modal/pull/79) [`6c0e7f9`](https://github.com/wethegit/react-modal/commit/6c0e7f90c38e09fa2731d380da37c3fb697eb687) Thanks [@andrewrubin](https://github.com/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](https://github.com/wethegit/react-modal/issues/62)

- **Before**

```javascript
<Modal appendToBody={true} />
```

- **After**

```javascript
<Modal renderTo={modalRef} />
```

## 2.2.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wethegit/react-modal",
"version": "2.2.2",
"version": "3.0.0",
"description": "A customizable, accessible modal window component for React projects.",
"files": [
"dist"
Expand Down

0 comments on commit 263435c

Please sign in to comment.