---
title: "Breaking: #79196 - Toolbar item event handling changed"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:breaking-79196"
source: "Changelog/8.6/Breaking-79196-ToolbarItemEventHandlingChanged.rst"
modified: "2026-09-15T10:46:36+00:00"
---

# Breaking: #79196 - Toolbar item event handling changed

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

## Description

With the introduction of the topbar reloading mechanism, the event handling of toolbar items has changed. Reason is
that the event information gets lost, as the whole topbar is rendered from scratch after a reload.

## Impact

After reloading the topbar, non-migrated events will not get triggered anymore.

## Affected Installations

All installations with old-fashioned toolbar item registrations.

## Migration

In most cases it's sufficient to replace the register function with `Viewport.Topbar.Toolbar.registerEvent()`.

Example:

```javascript
define(['jquery', 'TYPO3/CMS/Backend/Viewport'], function($, Viewport) {
   // old registration
   MyAwesomeItem.doStuff)

   // new registration
   Viewport.Topbar.Toolbar.registerEvent(MyAwesomeItem.doStuff);
});
```
