File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ const Modal = props => {
17
17
class_name,
18
18
autoFocus,
19
19
autofocus,
20
+ enforceFocus,
20
21
labelledBy,
21
22
labelledby,
22
23
modalClassName,
@@ -49,6 +50,7 @@ const Modal = props => {
49
50
contentClassName = { content_class_name || contentClassName }
50
51
backdropClassName = { backdrop_class_name || backdropClassName }
51
52
autoFocus = { autofocus || autoFocus }
53
+ enforceFocus = { enforceFocus }
52
54
aria-labelledby = { labelledby || labelledBy }
53
55
show = { is_open }
54
56
onHide = { onHide }
@@ -130,6 +132,11 @@ Modal.propTypes = {
130
132
*/
131
133
autoFocus : PropTypes . bool ,
132
134
135
+ /**
136
+ * When true The modal will prevent focus from leaving the Modal while open.
137
+ */
138
+ enforceFocus : PropTypes . bool ,
139
+
133
140
/**
134
141
* Set the size of the modal. Options sm, lg, xl for small, large or extra
135
142
* large sized modals, or leave undefined for default size.
You can’t perform that action at this time.
0 commit comments