Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Garnish menu btn still active even with disabled attribute in admin table #11128

Closed
BenParizek opened this issue May 6, 2022 · 2 comments
Closed

Comments

@BenParizek
Copy link
Contributor

What happened?

Just a minor bug to note in the latest Commerce 4.0.0:

/admin/commerce/promotions/sales

CleanShot 2022-05-06 at 11 33 13@2x

Craft CMS version

4

Craft Commerce version

4

PHP version

8

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@nfourtythree
Copy link
Contributor

Hi @BenParizek

Thank you for reporting, have just checked this with Commerce 3 and it is the same behaviour.

I don't think this is actually Commerce related specifically. But more likely a Garnish or Admin table issue.

Will transfer this to the cms repo so we can look at it in that context.

Thanks!

@nfourtythree nfourtythree changed the title [4.x]: Inactive Sales page buttons are interactive Garnish menu btn still active even with disabled attribute in admin table May 6, 2022
@nfourtythree nfourtythree transferred this issue from craftcms/commerce May 6, 2022
@brandonkelly
Copy link
Member

@nfourtythree There aren’t any references to disabled in Garnish.CustomSelect or Garnish.DisclosureMenu, so this is probably a case of Commerce setting the disabled class on the button, which will give it the reduced-opacity styling we apply across the board via .disabled, though the component itself has no support for it. So probably more of a Commerce bug, or you can PR support for disabled to the component in use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants