Skip to content

Commit 72c57cb

Browse files
committed
Release v3.2.1.
1 parent 0809958 commit 72c57cb

File tree

5 files changed

+18
-5
lines changed

5 files changed

+18
-5
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
v3.2.1 - Thu, 15 Feb 2018 09:07:28 UTC
2+
--------------------------------------
3+
4+
- [0809958](../../commit/0809958) [added] ref for overlay and content
5+
- [61b141d](../../commit/61b141d) Fix minor typos in spec
6+
7+
18
v3.1.13 - Fri, 09 Feb 2018 10:27:15 UTC
29
---------------------------------------
310

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-modal",
3-
"version": "3.1.13",
3+
"version": "3.2.1",
44
"homepage": "https://github.com/reactjs/react-modal",
55
"authors": [
66
"Ryan Florence",

dist/react-modal.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,9 @@ Modal.propTypes = {
704704
aria: _propTypes2.default.object,
705705
role: _propTypes2.default.string,
706706
contentLabel: _propTypes2.default.string,
707-
shouldCloseOnEsc: _propTypes2.default.bool
707+
shouldCloseOnEsc: _propTypes2.default.bool,
708+
overlayRef: _propTypes2.default.func,
709+
contentRef: _propTypes2.default.func
708710
};
709711
Modal.defaultProps = {
710712
isOpen: false,
@@ -1485,10 +1487,12 @@ var ModalPortal = function (_Component) {
14851487

14861488
_this.setOverlayRef = function (overlay) {
14871489
_this.overlay = overlay;
1490+
_this.props.overlayRef && _this.props.overlayRef(overlay);
14881491
};
14891492

14901493
_this.setContentRef = function (content) {
14911494
_this.content = content;
1495+
_this.props.contentRef && _this.props.contentRef(content);
14921496
};
14931497

14941498
_this.afterClose = function () {
@@ -1808,7 +1812,9 @@ ModalPortal.propTypes = {
18081812
contentLabel: _propTypes2.default.string,
18091813
aria: _propTypes2.default.object,
18101814
children: _propTypes2.default.node,
1811-
shouldCloseOnEsc: _propTypes2.default.bool
1815+
shouldCloseOnEsc: _propTypes2.default.bool,
1816+
overlayRef: _propTypes2.default.func,
1817+
contentRef: _propTypes2.default.func
18121818
};
18131819
exports.default = ModalPortal;
18141820
module.exports = exports["default"];

0 commit comments

Comments
 (0)