BlackBoxVision / react-qr-reader

React component for QR Scanning on web using Zxing library
MIT License
56 stars 11 forks source link

Camera doesn't close after component is unmounted #73

Open MomenAbdelwadoud opened 2 years ago

MomenAbdelwadoud commented 2 years ago

I am rendering it inside a Modal component and when I close it all its children disappear but the camera and the functionality are still working.

iamunadike commented 2 years ago

You dont use it in a modal and beside destroy the component, Its wrong to host it in a modal , becuase of its detachment from the root