New to KendoReact? Learn about KendoReact Free.

Initial Focus

Updated on Oct 27, 2026

The Dialog provides the ability to specify which element receives focus when the component opens.

By default, the Dialog focuses the first focusable element in its content, excluding the elements in the title bar. To focus a specific element instead, set the autoFocusedElement property to a query selector that matches an element inside the Dialog.

To focus the Dialog wrapper instead, set the autoFocus property to true. When autoFocus is true and autoFocusedElement is not set, the Dialog focuses its wrapper. When both are set, the Dialog ignores autoFocusedElement and focuses the first focusable element in its content, excluding the title bar.

The following example focuses the first input element instead of the first focusable element in the Dialog.

Example
View Source
Loading ...
In this article
Suggested Links
Not finding the help you need?
Contact Support