---
title: "Feature: #99092 - Allow static backdrops in modals"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-99092-1668509154"
source: "Changelog/12.1/Feature-99092-AllowStaticBackdropsInModals.rst"
typo3-version: "12.1"
typo3-major: 12
type: "feature"
issue: 99092
forge: "https://forge.typo3.org/issues/99092"
tags: ["Backend", "JavaScript", "ext:backend"]
rendered: "2026-10-01T19:27:47+00:00"
---

# Feature: #99092 - Allow static backdrops in modals {#feature-99092-1668509154}

See [forge#99092](https://forge.typo3.org/issues/99092)

## Description {#description}

The Modal API is now able to render a static backdrop to avoid closing the modal
when clicking it. This may be handy in case closing the modal would result in
a negative user experience, e.g. in the image cropper.

## Impact {#impact}

The new boolean configuration option `staticBackdrop` controls whether a
static backdrop should be rendered or not; the default is `false`.

Example:

```js
import Modal from '@typo3/backend/modal';

Modal.advanced({
  title: 'Hello',
  content: 'This modal is not closable via clicking the backdrop.',
  size: Modal.sizes.small,
  staticBackdrop: true
});
```

Templates using the HTML class `.t3js-modal-trigger` to initialize
a modal dialog can also use the new option by adding the
`data-static-backdrop` attribute to the corresponding element.

Example:

```html
<button class="btn btn-default t3js-modal-trigger"
    data-title="Hello"
    data-bs-content="This modal is not closable via clicking the backdrop."
    data-static-backdrop>
        Open modal
</button>
```
