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

How can i auto-close the picker when click outside the Canvas? #865

Open
gabrigomez opened this issue Aug 25, 2022 · 0 comments
Open

How can i auto-close the picker when click outside the Canvas? #865

gabrigomez opened this issue Aug 25, 2022 · 0 comments

Comments

@gabrigomez
Copy link

Hi everyone,

I have an issue to close the picker when i clicked outside it. I'm using the react-canvas and i can't find a solution to close the picker properly, since i can't expand or change the popover size on the div to cover the entire screen.

In the print below, i marked the current div generate with the popover where i can close the picker, but i want to be able to close it when i clicked anywhere in the screen. I have already try to change the css properties of popover, but it won't work, since it is attached on the react-canvas and not in a normal static background.

Can you guys help me with that?
Captura de tela de 2022-08-25 17-22-26 (1)

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

1 participant