---
id: fast-foundation.dialog.trapfocus
title: Dialog.trapFocus property
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-foundation](./fast-foundation.md) &gt; [Dialog](./fast-foundation.dialog.md) &gt; [trapFocus](./fast-foundation.dialog.trapfocus.md)

## Dialog.trapFocus property

Indicates that the dialog should trap focus.

<b>Signature:</b>

```typescript
trapFocus: boolean;
```

## Remarks

HTML Attribute: trap-focus
