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
Describe the bug
I'm using fw-modal. In the modal popup, the secondary button "Cancel" is automatically focused whenever the modal is opened. However, our designer doesn't want this specific behaviour of the secondary button being highlighted automatically. I have checked the documentation but couldn't find anything on how to disable this behaviour.
To Reproduce
Steps to reproduce the current behaviour:
Create an fm-modal and open it.
Secondary button (i.e. Cancel) is getting highlighted(i.e focused) automatically.
Expected behaviour
Do not want to focus the secondary button by default
Screenshots
Additional context
Add any other context about the bug here.
The text was updated successfully, but these errors were encountered:
Hi @thamotharan-karuppaiah , this is not a bug. It is the expected behaviour to highlight the first focusable element in the modal on opening the modal.
Currently, there is no way to change the behaviour. We can take this up as a feature request.
Vignesh-Manogar-E3433
changed the title
[Bug] - Disabling Automatic Focus on Secondary Button in fw-modal - Seeking Assistance
[Enhancement] - Option to choose the element to focus on opening modal
Jul 13, 2023
Component
fw-modal
Describe the bug
I'm using
fw-modal
. In the modal popup, the secondary button "Cancel" is automatically focused whenever the modal is opened. However, our designer doesn't want this specific behaviour of the secondary button being highlighted automatically. I have checked the documentation but couldn't find anything on how to disable this behaviour.To Reproduce
Steps to reproduce the current behaviour:
Expected behaviour
Do not want to focus the secondary button by default
Screenshots
Additional context
Add any other context about the bug here.
The text was updated successfully, but these errors were encountered: