react-bootstrap-sweetalert icon indicating copy to clipboard operation
react-bootstrap-sweetalert copied to clipboard

Click allowed in overlay

Open CicheR opened this issue 4 years ago • 2 comments

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

CicheR avatar Apr 09 '20 11:04 CicheR

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)

kristian-94 avatar Jun 15 '20 11:06 kristian-94

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 [email protected]

djorg83 avatar Jun 16 '20 21:06 djorg83