?
avatar C-Lodder
C-Lodder
15 May 2020

Steps to reproduce the issue

  1. Go to administrator/index.php?option=com_content&view=articles
  2. Click one of the checkboxes for any published article to select it
  3. Click on the Actions toolbar button
  4. Click Publish from the dropdown

Expected result

Should not do anything

Actual result

Executes the action and display an error alert

actions

Additional Notes

pointer-events: none; is being set to the button child, however this has no efect as the click event is occuring on the custom element (parent)

avatar C-Lodder C-Lodder - open - 15 May 2020
avatar joomla-cms-bot joomla-cms-bot - change - 15 May 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 15 May 2020
avatar C-Lodder C-Lodder - change - 15 May 2020
The description was changed
avatar C-Lodder C-Lodder - edited - 15 May 2020
avatar adj9
adj9 - comment - 16 May 2020

Confirmed the error.
A warning should be issued


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

avatar C-Lodder
C-Lodder - comment - 16 May 2020

@adj9 A warning shouldn't be issued. If the dropdown item appears to be disabled, the user shouldn't be allowed to click it

avatar brianteeman
brianteeman - comment - 18 May 2020

This is a very common problem and the only way it can be fixed on a list element is with javascript to remove the href.

Note that if that is done then you will need to add aria-disabled="true"

avatar SharkyKZ
SharkyKZ - comment - 19 May 2020

This is done intentionally:

publishBtn.parentElement.addEventListener('click', (e) => {
if (publishBtn.classList.contains('disabled')) {
e.stopImmediatePropagation();
Joomla.renderMessages({ error: [Joomla.JText._('COM_CONTENT_ERROR_CANNOT_PUBlISH')] });
} else {
checkTransition(e, 'publish');
}
});

Is it a bad idea?

avatar SharkyKZ
SharkyKZ - comment - 24 Jul 2020

Looks like the issue is no longer relevant. Now all buttons are enabled.

avatar Quy Quy - change - 21 Oct 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-10-21 00:01:55
Closed_By Quy
avatar Quy Quy - close - 21 Oct 2020

Add a Comment

Login with GitHub to post a comment