Commit f12057d
committed
fix(Modal): add workaround for Modal auto focus
Check if the dialog has a parent which can receive focus before trying to focus it.
This workaround will allow react 16 to use Modal without forcing autoFocus={false}1 parent bb00f4c commit f12057d
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
232 | 234 | | |
233 | 235 | | |
234 | 236 | | |
| |||
0 commit comments