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 buttons are still clickable #102

Open
kayra1 opened this issue Sep 27, 2024 · 1 comment
Open

disabled buttons are still clickable #102

kayra1 opened this issue Sep 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@kayra1
Copy link
Contributor

kayra1 commented Sep 27, 2024

Describe the bug

Even though the frontend UI shows the disabled cursor and greys out the actions for certificates, clicking them will still execute whatever the function is. This should not happen

To Reproduce

Insert a csr into Notary.
Click any of the disabled actions.

Expected behavior

Buttons should do nothing when clicked.

@kayra1 kayra1 added the bug Something isn't working label Sep 27, 2024
@gruyaume
Copy link
Collaborator

gruyaume commented Oct 7, 2024

This seems to be caused by the use of onMouseDown and easily fixed by switching to onClick instead.

Some buttons handle this correctly (ex. Submit in the Add Certificate Request modal) and those all use onClick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants