Steps to Reproduce
1. click "add" button, wait the camera to start showing the video around 3 seconds
2. Click "remove" button
3. click "add" button
Current Result
The barscanner widget keeps producing the error:
zkmax.barscanner.wpd:13600 Uncaught TypeError: Cannot read properties of undefined (reading 'getContext')
at Object.callback (zkmax.barscanner.wpd:13600:40)
at n (zkmax.barscanner.wpd:1991:19)
at zkmax.barscanner.wpd:2018:13
at Array.forEach (<anonymous>)
at Object.publish (zkmax.barscanner.wpd:2017:29)
at v (zkmax.barscanner.wpd:1633:59)
at n.worker.onmessage (zkmax.barscanner.wpd:1680:102)
Expected Result
no error
Workaround
Similar to the workaround in ZK-4338
zk-5230.js
- relates to
-
ZK-4337 barcodescanner can only instantiate reader once per page
- Open
-
ZK-4338 Quagga readers are not removed when barcodereader is unbind_()
- Closed
-
ZK-5874 Barcodescanner doesn't work after detach and attach
- Open
-
ZK-5231 removing a barcodescanner immediately right after the browser renders it causes javascript error
- Open