? ? Pending

User tests: Successful: Unsuccessful:

avatar SharkyKZ
SharkyKZ
30 Jun 2020

Fixes #29820.

Summary of Changes

Moves event listener from joomla-toolbar-button element to actual clickable button.

Testing Instructions

node build.js --compile-js required.
Go to any backend view containing toolbar buttons.
Click a couple of pixels below or above a button.

Actual result BEFORE applying this Pull Request

Button clicked.

Expected result AFTER applying this Pull Request

Button not clicked.
Also check that buttons continue to work properly.

Documentation Changes Required

No.

avatar SharkyKZ SharkyKZ - open - 30 Jun 2020
avatar SharkyKZ SharkyKZ - change - 30 Jun 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 Jun 2020
Category JavaScript Repository NPM Change
avatar SharkyKZ SharkyKZ - change - 30 Jun 2020
The description was changed
avatar SharkyKZ SharkyKZ - edited - 30 Jun 2020
avatar PhilETaylor PhilETaylor - test_item - 30 Jun 2020 - Tested successfully
avatar PhilETaylor
PhilETaylor - comment - 30 Jun 2020

I have tested this item successfully on c653e7f


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

avatar Quy Quy - test_item - 30 Jun 2020 - Tested successfully
avatar Quy
Quy - comment - 30 Jun 2020

I have tested this item successfully on c653e7f


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

avatar Quy Quy - change - 30 Jun 2020
Status Pending Ready to Commit
avatar Quy
Quy - comment - 30 Jun 2020

RTC


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

avatar wilsonge wilsonge - change - 30 Jun 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-06-30 17:32:51
Closed_By wilsonge
Labels Added: ? ?
avatar wilsonge
wilsonge - comment - 30 Jun 2020

Thanks!

avatar Fedik
Fedik - comment - 4 Jul 2020

It a styling issue, not JS, better fix would be correct CSS somehow,
Additionally:this.buttonElement may not exists, that will lead to another issue ;)

Just a warning :)

avatar SharkyKZ
SharkyKZ - comment - 5 Jul 2020

@Fedik I'm aware this was related to styling. But I think this PR is semantically correct. joomla-toolbar-button is not a button and requires a button or a element inside, according to this comment:

// We need a button to support button behavior,
// because we cannot currently extend HTMLButtonElement

Add a Comment

Login with GitHub to post a comment