mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs(dialog): add note about setting initial focus (#9110)
Adds a note to the dialog docs about setting the initial focus. Relates to #9107.
This commit is contained in:
committed by
Jeremy Elbourn
parent
e18292c7d2
commit
77b45f57df
@@ -142,7 +142,8 @@ within itself. Once a dialog is closed, it will return focus to the element that
|
||||
before the dialog was opened.
|
||||
|
||||
#### Focus management
|
||||
By default, the first tabbable element within the dialog will receive focus upon open.
|
||||
By default, the first tabbable element within the dialog will receive focus upon open. This can
|
||||
be configured by setting the `cdkFocusInitial` attribute on another focusable element.
|
||||
|
||||
Tabbing through the elements of the dialog will keep focus inside of the dialog element,
|
||||
wrapping back to the first tabbable element when reaching the end of the tab sequence.
|
||||
|
||||
Reference in New Issue
Block a user