You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using custom CSS classes for the modal, the shouldFocusAfterRender property boolean has no discernible effect on the modal: it is always focused on render.
After further investigation, the problem seems to apply to any use of shouldFocusAfterRender and not just instances where custom CSS classes are used. I am happy to update this issue to reflect that, but I am primarily concerned with custom styles.
The text was updated successfully, but these errors were encountered:
Hey, @SeanMcP. Looks like you're examples are using a fairly old version of ReactModal (v1.6.2). The shouldFocusAfterRender prop was not added to this library until v2.3.1. Is it possible for you to upgrade your app's version of this library?
Summary:
When using custom CSS classes for the modal, the
shouldFocusAfterRender
property boolean has no discernible effect on the modal: it is always focused on render.Steps to reproduce:
shouldFocusAfterRender={false}
Expected behavior:
I expect the modal to be unfocused on render when the
shouldFocusAfterRender
property is set tofalse
.Link to example of issue:
Example following the steps to reproduce above: https://codepen.io/SeanMcP/pen/pLNYeR
Additional notes:
After further investigation, the problem seems to apply to any use of
shouldFocusAfterRender
and not just instances where custom CSS classes are used. I am happy to update this issue to reflect that, but I am primarily concerned with custom styles.The text was updated successfully, but these errors were encountered: