Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 296059

Allow ajax dialog to have focus configurable

$
0
0

Problem/Motivation

There are some use cases where you don't want that Ajax.dialog autofocuses on the dialog.
My use case is because of: layoutbuilder_extras_live_update
I am updating the Layout in the background. In this use case I don't want that Dialog gives focus to the dialog again.

I've added a setting on drupalSettings to make this configurable.

if (
          settings.dialog.autoFocus === 'undefined' ||
          settings.dialog.autoFocus !== false
        ) {
          $dialog.dialog('widget').trigger('focus');
        }

Proposed resolution

Add a setting to make this configurable.

Remaining tasks

Review


Viewing all articles
Browse latest Browse all 296059

Trending Articles


Practice Sheet of Right form of verbs for HSC Students


Sarah Samis, Emil Bove III


ZARIA CUMMINGS


Need radio code for IVECO Delphi Aptiv FJ5 RBT M16


Black Angus Grilled Artichokes


Ed Sheeran – Sapphire – Pre-Single [iTunes Plus M4A]


Sunny Garcia’s Ex-Wife Colleen McCullough


99 God Status for Whatsapp, Facebook


Funeral of Sir Warwick Franklin


MHDD



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>