From 3c328feb658b947b497fc6e07236635b7b8def6b Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 19 Jan 2022 19:03:47 +1100 Subject: [PATCH] Donate keyboard focus when creating a secondary modal --- InvenTree/templates/js/translated/forms.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/InvenTree/templates/js/translated/forms.js b/InvenTree/templates/js/translated/forms.js index e9e03f04fc..4e6e2fd162 100644 --- a/InvenTree/templates/js/translated/forms.js +++ b/InvenTree/templates/js/translated/forms.js @@ -1424,6 +1424,11 @@ function addSecondaryModal(field, fields, options) { }; } + // Relinquish keyboard focus for this modal + $(options.modal).modal({ + keyboard: false, + }); + // Method should be "POST" for creation secondary.method = secondary.method || 'POST';