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

Disabled dropdown item should not be activated by mouse click #387

Closed
2 of 7 tasks
belyan opened this issue Nov 14, 2022 · 3 comments
Closed
2 of 7 tasks

Disabled dropdown item should not be activated by mouse click #387

belyan opened this issue Nov 14, 2022 · 3 comments

Comments

@belyan
Copy link

belyan commented Nov 14, 2022

Describe the bug

Disabled dropdown item should not be activated by mouse click.

How to reproduce

https://stackblitz.com/edit/clarity-light-theme-clr13-cds6-21czpf?file=src/app/app.component.html

Steps to reproduce the behavior:

  1. Open dropdown menu
  2. Click on 'Disabled action'
  3. Value of boolean property 'clicked' changed to true

Expected behavior

Click event shouldn't be handled for disabled item.

Versions

Clarity version:

  • v12.x
  • v13.x
  • Other:

Framework:

  • Angular
  • React
  • Vue
  • Other:

Framework version:
Angular 13

Device:

  • Type: MacBook
  • OS: MacOS
  • Browser: Chrome
  • Version: latest

Possible solution

Add CSS rule pointer-events: none for disabled dropdown items.

@belyan belyan changed the title Dropdown disabled item can be clicked Disabled dropdown item should not be activated by mouse click Nov 14, 2022
@kevinbuhmann kevinbuhmann self-assigned this Dec 12, 2022
@github-actions
Copy link
Contributor

🎉 This issue has been resolved in version 13.11.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link
Contributor

🎉 This issue has been resolved in version 15.0.0-beta.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link
Contributor

github-actions bot commented Jan 3, 2023

Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants