Skip to content

Modals : Clicking on the backdrop automatically focuses on the first field #19350

Closed
@GitHubish

Description

@GitHubish

There's some behavior that doesn't seem normal to me. I have a modal on which the following options have been configured:

disableClose: true,
autofocus: false

In the constructor of my modal I subscribed to backdropClick to receive the event and make a check before manually closing the modal. Only by doing this, the focus is automatically taken on the first field found (or button). This is problematic in my case. Shouldn't it be the case since I have disabled autofocus?

thanks

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions