Using tabledrag in dialog causes focus on title and scroll to top

Changed

On a module page, when adding referenced content such as a Tip, a multivalue field with tabledrag will scroll to the top of the dialog when used.

Tabledrag in dialog scroll to top

 

Looks like it's related to these issues:

View on Drupal.org #3100133Ajax replace inside a modal causes the current field to lose focus Status: Needs work

Replace #ajax['wrapper'] with #ajax['wrapper_selector']

It might have something to do with dialog.ajax.js checking for document.activeElement: View on Drupal.org #2994909Highlight active element while working with dialogs in Layout Builder Status: Closed (fixed)

Task type
Topics