change barcode scan form to use requestSubmit() to fix CSRF token not being generated on submission

This commit is contained in:
swdee 2026-01-15 22:09:57 +13:00
parent 0a8199d81f
commit f5c47ef5c7

View file

@ -70,6 +70,6 @@ export default class extends Controller {
//Put our decoded Text into the input box //Put our decoded Text into the input box
document.getElementById('scan_dialog_input').value = decodedText; document.getElementById('scan_dialog_input').value = decodedText;
//Submit form //Submit form
document.getElementById('scan_dialog_form').submit(); document.getElementById('scan_dialog_form').requestSubmit();
} }
} }