Skip to content

Commit

Permalink
Release v3.2.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
diasbruno committed Feb 15, 2018
1 parent 0809958 commit 72c57cb
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
v3.2.1 - Thu, 15 Feb 2018 09:07:28 UTC
--------------------------------------

- [0809958](../../commit/0809958) [added] ref for overlay and content
- [61b141d](../../commit/61b141d) Fix minor typos in spec


v3.1.13 - Fri, 09 Feb 2018 10:27:15 UTC
---------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-modal",
"version": "3.1.13",
"version": "3.2.1",
"homepage": "https://github.com/reactjs/react-modal",
"authors": [
"Ryan Florence",
Expand Down
10 changes: 8 additions & 2 deletions dist/react-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,9 @@ Modal.propTypes = {
aria: _propTypes2.default.object,
role: _propTypes2.default.string,
contentLabel: _propTypes2.default.string,
shouldCloseOnEsc: _propTypes2.default.bool
shouldCloseOnEsc: _propTypes2.default.bool,
overlayRef: _propTypes2.default.func,
contentRef: _propTypes2.default.func
};
Modal.defaultProps = {
isOpen: false,
Expand Down Expand Up @@ -1485,10 +1487,12 @@ var ModalPortal = function (_Component) {

_this.setOverlayRef = function (overlay) {
_this.overlay = overlay;
_this.props.overlayRef && _this.props.overlayRef(overlay);
};

_this.setContentRef = function (content) {
_this.content = content;
_this.props.contentRef && _this.props.contentRef(content);
};

_this.afterClose = function () {
Expand Down Expand Up @@ -1808,7 +1812,9 @@ ModalPortal.propTypes = {
contentLabel: _propTypes2.default.string,
aria: _propTypes2.default.object,
children: _propTypes2.default.node,
shouldCloseOnEsc: _propTypes2.default.bool
shouldCloseOnEsc: _propTypes2.default.bool,
overlayRef: _propTypes2.default.func,
contentRef: _propTypes2.default.func
};
exports.default = ModalPortal;
module.exports = exports["default"];
Expand Down
Loading

0 comments on commit 72c57cb

Please sign in to comment.