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

EyeDropper doesn't work in Opera browser #6306

Closed
2 tasks done
viktorkasap opened this issue May 29, 2024 · 1 comment · Fixed by #6307
Closed
2 tasks done

EyeDropper doesn't work in Opera browser #6306

viktorkasap opened this issue May 29, 2024 · 1 comment · Fixed by #6307

Comments

@viktorkasap
Copy link
Contributor

viktorkasap commented May 29, 2024

Dependencies check up

  • I have verified that I use latest version of all @mantine/* packages

What version of @mantine/* packages do you have in package.json?

7.10.0

What package has an issue?

@mantine/hooks

What framework do you use?

Next.js

In which browsers you can reproduce the issue?

Other, I will specify in the bug description

Describe the bug

Found out that EyeDropper hook does not work correctly in Opera browser. Despite the fact that there is EyeDropper key in window object and under the hood Opera uses Chromium. There will be no errors in the console, because there is a key in window and there are methods.

Opera-05-29-2024-15-36-04

Opera-05-29-2024-15-46-18

If possible, include a link to a codesandbox with a minimal reproduction

No response

Possible fix

As a solution I suggest not to show this dropper in Opera browser by adding a check:

function isOpera() {
    return navigator.userAgent.includes('OPR');
}

Self-service

  • I would be willing to implement a fix for this issue
@viktorkasap
Copy link
Contributor Author

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

Successfully merging a pull request may close this issue.

1 participant