Add ability to add transaction items using barcode scanner

This commit is contained in:
2023-11-05 23:10:54 +00:00
parent eae1833e2b
commit 929eddd9e8
9 changed files with 145 additions and 38 deletions

View File

@ -13,6 +13,10 @@ export default class ModalController extends Controller {
if (!this.element.open) {
return;
}
if (event.type === "turbo:submit-end" && (event.detail.formSubmission.method === 0 || !event.detail.success)) {
// Don't close modal if form method was GET or submission failed
return;
}
event.preventDefault();