User tests: Successful: Unsuccessful:
Pull Request for Issue #27530 .
I added following lines into the template js file:
headerMoreBtn.addEventListener('click', function () { event.stopPropagation(); headerMoreItem.classList.toggle('active'); }); window.onclick = function(event) { headerMoreItem.classList.remove("active"); }
Test if the dropdown is closed when clicking anywhere else
See if the code makes sense - I am not too familiar with Javascript
The dropdown stays open when clicking outside the menu
The dropdown closes when clicking outside the menu
no
Status | New | ⇒ | Pending |
Category | ⇒ | JavaScript Repository NPM Change |
The code works you just need to fix the code style issues
Labels |
Added:
NPM Resource Changed
?
|
Sorry wrong commit message - hope the cs issues are fixed now
I have tested this item
OK - DWISOTT!
@coolcat-creations can you make recommended changes to this PR so Drone can be restarted?
@richard67 there are more cs issues, can you have a look?
@HLeithner It seems not to be code style only, so it might need a JS expert, which I am not for sure. But I'll try what I can do.
@HLeithner It seems I was able to fix it (with help of the linter). I hope I haven't done anything wrong since I'm not an es6 expert.
@ceford Could you test again?
And @brianteeman : Could you give it a test, too?
Thanks in advance.
Thanks @richard67
I have tested this item
I have tested this item
I have tested this item
OK - it works.
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-01-03 17:17:56 |
Closed_By | ⇒ | HLeithner | |
Labels |
Added:
?
|
Thanks
@coolcat-creations Drone reports javascript cs errors: https://ci.joomla.org/joomla/joomla-cms/38392/1/21