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

Click allowed in overlay #64

Open
CicheR opened this issue Apr 9, 2020 · 2 comments
Open

Click allowed in overlay #64

CicheR opened this issue Apr 9, 2020 · 2 comments

Comments

@CicheR
Copy link

CicheR commented Apr 9, 2020

The code consists of a table with clickables TRs and a DeleteButton:
code image

When the SweetAlert is shown in modal mode, the background is still clickable, but the click event responds to the last row clicked.

error preview

There is also an error in the console:
console error

CodeSandbox
CodeSandbox preview
GitHub

@kristian-94
Copy link

I also get that console error,

Warning: A string ref, "container", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref
    in div (created by Overlay)
    in Overlay (created by SweetAlert)
    in div (created by SweetAlert)

@djorg83
Copy link
Owner

djorg83 commented Jun 16, 2020

I also get that console error,

Warning: A string ref, "container", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref
    in div (created by Overlay)
    in Overlay (created by SweetAlert)
    in div (created by SweetAlert)

^ This warning is resolved in react-bootstrap-sweetalert@5.1.12

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

3 participants