# Initial Focus

The KendoReact Window can move focus to its container when it opens and return focus to the previously focused element when it closes.

By default, the Window focuses its container when it mounts. To keep the focus on the element that opened the Window, set the [`autoFocus`](https://www.telerik.com/kendo-react-ui-develop/components/dialogs/api/windowprops#autofocus) property to `false`.

The following example sets the `autoFocus` property of the Window to `false` and the `autoFocus` property of the first input inside the Window to `true`, so the focus moves to the input when the Window opens.

[Demo Source](https://demos.telerik.com/kendo-react-ui/dialogs/window/initial-focus/func/source.txt)

## Suggested Links

* [API Reference of the Window](https://www.telerik.com/kendo-react-ui-develop/components/dialogs/api/window)
* [Window Visibility](https://www.telerik.com/kendo-react-ui-develop/components/dialogs/window/visibility)
* [Window Keyboard Navigation](https://www.telerik.com/kendo-react-ui-develop/components/dialogs/window/keyboard-navigation)
