Skip to content

Commit 4fafd8f

Browse files
Modal: Update parentSelector comment
1 parent ab2441f commit 4fafd8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/modal/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const propTypes = {
104104
*/
105105
isOpen: PropTypes.bool.isRequired,
106106
/**
107-
* Function that returns parent node to contain Modal. Should return document.querySelector('#myModalContainer').
107+
* Function whose return value is the mount node to insert the Modal element into. The default is `() => document.body`.
108108
*/
109109
parentSelector: PropTypes.func,
110110
/**

0 commit comments

Comments
 (0)