Skip to content
Snippets Groups Projects
Verified Commit eacdda96 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3461284 by mherchel, finnsky, quietone, nod_: Prevent simultaneous...

Issue #3461284 by mherchel, finnsky, quietone, nod_: Prevent simultaneous open/close on simultaneous click/hover

(cherry picked from commit c1708b32)
parent 22972e37
No related branches found
No related tags found
11 merge requests!10602Issue #3438769 by vinmayiswamy, antonnavi, michelle, amateescu: Sub workspace does not clear,!10301Issue #3469309 by mstrelan, smustgrave, moshe weitzman: Use one-time login...,!10187Issue #3487488 by dakwamine: ExtensionMimeTypeGuesser::guessMimeType must support file names with "0" (zero) like foo.0.zip,!9929Issue #3445469 by pooja_sharma, smustgrave: Add additional test coverage for...,!9787Resolve issue 3479427 - bootstrap barrio issue under Windows,!9742Issue #3463908 by catch, quietone: Split OptionsFieldUiTest into two,!9526Issue #3458177 by mondrake, catch, quietone, godotislate, longwave, larowlan,...,!8949Backport .gitlabci.yml changes.,!6502Draft: Resolve #2938524 "Plach testing issue",!38582585169-10.1.x,!3226Issue #2987537: Custom menu link entity type should not declare "bundle" entity key
Pipeline #227514 passed with warnings
Pipeline: drupal

#227563

    Pipeline: drupal

    #227558

      Pipeline: drupal

      #227555

        +6
        ......@@ -9,6 +9,7 @@
        const POPOVER_OPEN_DELAY = 150;
        const POPOVER_CLOSE_DELAY = 400;
        const POPOVER_NO_CLICK_DELAY = 500;
        ((Drupal, once) => {
        Drupal.behaviors.navigationProcessPopovers = {
        ......@@ -42,12 +43,17 @@ const POPOVER_CLOSE_DELAY = 400;
        const expandPopover = () => {
        popover.classList.add('toolbar-popover--expanded');
        button.dataset.drupalNoClick = 'true';
        tooltip.removeAttribute('inert');
        setTimeout(() => {
        delete button.dataset.drupalNoClick;
        }, POPOVER_NO_CLICK_DELAY);
        };
        const collapsePopover = () => {
        popover.classList.remove('toolbar-popover--expanded');
        tooltip.setAttribute('inert', true);
        delete button.dataset.drupalNoClick;
        };
        /**
        ......@@ -134,7 +140,10 @@ const POPOVER_CLOSE_DELAY = 400;
        button.addEventListener('click', (e) => {
        const state =
        e.currentTarget.getAttribute('aria-expanded') === 'false';
        toggleState(state);
        if (!e.currentTarget.dataset.drupalNoClick) {
        toggleState(state);
        }
        });
        // Listens events from sidebar.js.
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Finish editing this message first!
        Please register or to comment