openfoodfacts / open-prices-frontend

A vue.js front-end for Open Prices
25 stars 13 forks source link

Bug: the site gets stuck if you don't give camera permission to the browser #407

Open fbtw opened 8 months ago

fbtw commented 8 months ago

What

As the title suggest if the web app ask for camera permission and it's denied the site gets stuck inside the camera permission dialog

Steps to reproduce the behavior:

  1. In the add product page, Click on scan barcode button inside any of the 3 options
  2. The webapp needs the permission but gets denied (for example the browser is defaulted to deny the camera)
  3. The barcode dialog stays open and can't be dismissed

Expected behavior

Close the scan barcode dialog (using the X or clicking outside) and the dialog is dismissed, or go back and the dialog is dismissed

Platform (Desktop, Mobile, Hunger Games)

raphodn commented 8 months ago

duplicate with #309 ?

raphodn commented 8 months ago

@fbtw can you test again ? I just deployed the fix in prod today :)