Releases: tajo/react-portal
Releases · tajo/react-portal
Bug Fixes
Fallback for React 15 added
v4.0.0 was a complete rewrite that utilizes React v16 Portal API. However, we dropped support for older Reacts. That can be a problem for library authors that still want to support older Reacts.
So, version v4.1.0. adds a fallback in case that Portal API doesn't exist. Now you can use the same react-portal with React v16 and v15.
Support for React 15.5
It removes React.PropTypes and uses prop-types lib instead.
Fixes compatibility with React 15.4
- It doesn't rely on internal modules or React, so future React versions should not break this module again.
- It removes
shallowCompare()since it doesn't really do anything - It removes support to style (inline styles and className) the main
react-portaldiv. Use a wrapper div (or other element) instead. This is a braking change if you rely on this functionality; thus, major release.
openByClickOn element is not wrapped by div
openByClickOn element is not wrapped by unnecessary div element anymore
- cleaner markup
- className
openByClickOnremoved - this is good if this element is something like button that should be inlined
- this is a BC change; thus, major release
For more info: #40