Skip to content

www.ordinepsicologifvg.it - Drop-down buttons are not working #43330

Open

Description

@aleorco

URL: https://www.ordinepsicologifvg.it/amministrazione-trasparente.html

Browser / Version: Firefox 61.0
Operating System: Windows 7
Tested Another Browser: Yes

Problem type: Something else
Description: do not open accordion item (collapsible content)
Steps to Reproduce:
do not open accordion item (collapsible content). If I clic on Mostra Tutto (Show all) or Nascondi tutto (Hide all), the content is visible.
In Google Chrome this is right.

Browser Configuration
  • None

From webcompat.com with ❤️

Activity

  1. added this to the needstriage milestone on Oct 28, 2019
  2. added
    engine-gecko
    on Oct 28, 2019
  3. aleorco commented on Oct 28, 2019

    @aleorco
    Author

    Screenshot Description

  4. aleorco commented on Oct 28, 2019

    @aleorco
    Author

    Screenshot Description

  5. changed the title [-]www.ordinepsicologifvg.it - see bug description[/-] [+]www.ordinepsicologifvg.it - Drop-down buttons are not working[/+] on Nov 6, 2019
  6. added
    severity-important
    on Nov 6, 2019
  7. cipriansv commented on Nov 6, 2019

    @cipriansv

    Thanks for the report, @aleorco.
    I was indeed able to reproduce the issue. The content of the accordion menu is not displayed when clicking on a button from the menu.

    Tested with:
    Browser / Version: Firefox Nightly 72.0a1 (2019-11-05), Chrome 78.0.3904.87
    Operating System: Windows 10 Pro

    This is the web page displayed in Firefox Nightly after clicking on a drop-down button:

    image

    And this is the web page displayed in Chrome:

    image

  8. karlcow commented on Nov 15, 2019

    @karlcow
    Member

    in https://www.ordinepsicologifvg.it/components/com_jefaqpro/assets/js/accordionview.js

    on Chrome it goes through the else, on Firefox it goes through the first part of the if

                        if(bHideAfter) {
                            if (this.fireEvent(panelCloseEvent, el) === false) { return; }
                            YUD.removeClass(elClicked, that.CLASSES.ACTIVE);
                            elClicked.tabIndex = -1;
                            iehide(el, 'hidden');
                            that._setARIA(el, 'aria-hidden', 'true');
                            that._setARIA(elClicked, 'aria-expanded', 'false');
                            oAnimator.onComplete.subscribe(function(){
                                YUD.addClass(el, that.CLASSES.HIDDEN);
                                YUD.setStyle(el, 'height', 'auto');
                                fireEvent('afterPanelClose', el);
                            });
                        }
                        else {
                            if (fireEvent(panelOpenEvent, el) === false) { return; }
                            //changed from visible to hidden so it doesn't show up behind the parent accordion until after the animation
                            iehide(el, 'hidden');
                            oAnimator.onComplete.subscribe(function(){
                                YUD.setStyle(el, 'height', 'auto');
                                //Added to make the inner accordion visible again
                                iehide(el, 'visible');
                                that._setARIA(el, 'aria-hidden', 'false');
                                that._setARIA(elClicked, 'aria-expanded', 'true');
                                elClicked.tabIndex = 0;
                                fireEvent(afterPanelOpenEvent, el);
    //alert(ev.re_cid);
    updateHits(ev.re_cid);
                               // Added by Sam
                               // var ques_id = document.getElementById('ques_id').value;
                               // alert('welcome::'+ques_id);
                            });
                            YUD.addClass(elClicked, this.CLASSES.ACTIVE);
                        }

    I have to dig a bit more.

  9. karlcow commented on Feb 18, 2020

    @karlcow
    Member

    ok I spent quite a bit of time in there.
    And I have the feeling that is is a race issue.
    On step by step, we get the menu open and it stays open.

    The way the code is working on these menu is a bit strange. Instead of targeting just the one menu that has been clicked to open it. It targets it but also go through all the 22 other sections to check their open or close status. This seems unnecessary.

    And it's probably why maybe at a point the status open/closed collides.

    I'm moving this to needscontact.

  10. karlcow commented on Feb 18, 2020

    @karlcow
    Member

    There is a contact in the page with [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    browser-firefoxengine-geckopriority-normalseverity-important

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions