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

Add click handler to mouseDown on confirm button for Safari compatibilty #385

Merged
merged 1 commit into from
Jun 15, 2023

Conversation

JasonWeill
Copy link
Collaborator

Fixes #364; alternative to #382 and #383.

Fixes the two-phase button in Safari by attaching a handler to the mouseDown event. For some reason, the click event doesn't fire when a user clicks on a button made visible as we do, so the blur event fires every time, even after I make the button focused explicitly.

Also tested as working in Firefox. There is a slight change in functionality, since the second phase of the delete or stop button now starts when the user mouses down, not when they click (mouse down and mouse up).

The animation below was captured in Safari.

two-phase-safari-working

@JasonWeill JasonWeill added the bug Something isn't working label Jun 14, 2023
@github-actions
Copy link
Contributor

Binder 👈 Launch a Binder on branch JasonWeill/jupyter-scheduler/safari-mousedown

Copy link
Collaborator

@andrii-i andrii-i left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice

@andrii-i
Copy link
Collaborator

There is no regression in user experience and it works in safari

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

Successfully merging this pull request may close these issues.

Cannot delete jobs in Safari browser
2 participants