NPM Resource Changed ? ? Pending

User tests: Successful: Unsuccessful:

avatar coolcat-creations
coolcat-creations
19 Dec 2020

Pull Request for Issue #27530 .

Summary of Changes

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"); }

Testing Instructions

Test if the dropdown is closed when clicking anywhere else
See if the code makes sense - I am not too familiar with Javascript

Actual result BEFORE applying this Pull Request

The dropdown stays open when clicking outside the menu

Expected result AFTER applying this Pull Request

The dropdown closes when clicking outside the menu

Documentation Changes Required

no

avatar coolcat-creations coolcat-creations - open - 19 Dec 2020
avatar coolcat-creations coolcat-creations - change - 19 Dec 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Dec 2020
Category JavaScript Repository NPM Change
avatar richard67
richard67 - comment - 19 Dec 2020
avatar brianteeman
brianteeman - comment - 19 Dec 2020

The code works you just need to fix the code style issues

avatar coolcat-creations coolcat-creations - change - 19 Dec 2020
Labels Added: NPM Resource Changed ?
avatar coolcat-creations
coolcat-creations - comment - 19 Dec 2020

Sorry wrong commit message - hope the cs issues are fixed now

avatar ceford
ceford - comment - 2 Jan 2021

I have tested this item successfully on 4600737

OK - DWISOTT!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31730.

avatar ceford ceford - test_item - 2 Jan 2021 - Tested successfully
avatar jwaisner
jwaisner - comment - 3 Jan 2021

@coolcat-creations can you make recommended changes to this PR so Drone can be restarted?

avatar HLeithner
HLeithner - comment - 3 Jan 2021

@richard67 there are more cs issues, can you have a look?

avatar richard67
richard67 - comment - 3 Jan 2021

@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.

avatar richard67
richard67 - comment - 3 Jan 2021

@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.

avatar HLeithner
HLeithner - comment - 3 Jan 2021

Thanks @richard67

avatar richard67
richard67 - comment - 3 Jan 2021

I have tested this item successfully on a5a4849


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31730.

avatar richard67 richard67 - test_item - 3 Jan 2021 - Tested successfully
avatar brianteeman
brianteeman - comment - 3 Jan 2021

I have tested this item successfully on a5a4849


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31730.

avatar brianteeman brianteeman - test_item - 3 Jan 2021 - Tested successfully
avatar ceford
ceford - comment - 3 Jan 2021

I have tested this item successfully on a5a4849

OK - it works.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31730.

avatar ceford ceford - test_item - 3 Jan 2021 - Tested successfully
avatar alikon alikon - change - 3 Jan 2021
Status Pending Ready to Commit
avatar alikon
alikon - comment - 3 Jan 2021

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31730.

avatar HLeithner HLeithner - change - 3 Jan 2021
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: ?
avatar HLeithner HLeithner - close - 3 Jan 2021
avatar HLeithner HLeithner - merge - 3 Jan 2021
avatar HLeithner
HLeithner - comment - 3 Jan 2021

Thanks

Add a Comment

Login with GitHub to post a comment