Commit 797b6c73 authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_document_scanner: Clear photo to avoid pass it to the next step

parent 6fe24359
......@@ -176,6 +176,8 @@
selector = element.querySelector("select");
preferredCroppedCanvasData = preferredCroppedCanvasData || JSON.parse(
options.preferred_cropped_canvas_data);
// Clear photo input
element.querySelector('.photoInput').value = "";
if (!selector.value && video) {
video.pause();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment