Quantcast
Viewing all articles
Browse latest Browse all 291721

Allow ajax dialog to have focus configurable

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 291721

Trending Articles



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