Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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