You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
www.ordinepsicologifvg.it - Drop-down buttons are not working #43330
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.
changed the title [-]www.ordinepsicologifvg.it - see bug description[/-][+]www.ordinepsicologifvg.it - Drop-down buttons are not working[/+]on Nov 6, 2019
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:
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 animationiehide(el,'hidden');oAnimator.onComplete.subscribe(function(){YUD.setStyle(el,'height','auto');//Added to make the inner accordion visible againiehide(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);}
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.
Activity
aleorco commentedon Oct 28, 2019
aleorco commentedon Oct 28, 2019
[-]www.ordinepsicologifvg.it - see bug description[/-][+]www.ordinepsicologifvg.it - Drop-down buttons are not working[/+]cipriansv commentedon Nov 6, 2019
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:
And this is the web page displayed in Chrome:
karlcow commentedon Nov 15, 2019
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 theifI have to dig a bit more.
karlcow commentedon Feb 18, 2020
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.
karlcow commentedon Feb 18, 2020
There is a contact in the page with [email protected]