Breaking: #98261 - Removed jQuery in Popover module

See forge#98261

Description

The support for jQuery in the module @typo3/backend/popover has been dropped. Passing jQuery elements to the module's methods is not possible anymore.

This affects the following methods:

  • popover()
  • setOptions()
  • show()
  • hide()
  • destroy()
  • toggle()

Impact

Calling any of the aforementioned methods with passing a jQuery-based object is undefined and will lead to JavaScript errors.

Affected installations

All 3rd party extensions using the API of the @typo3/backend/popover module are affected.

Migration

The method popover() accepts either an object of type HTMLElement or a collection of type NodeList, where all elements must be of type HTMLElement.

Any other method accepts objects of type HTMLElement only.

Example:

// Before
Popover.popover($('button.popover'));

// After
Popover.popover(document.querySelectorAll('button.popover'));
Copied!