mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 12:35:46 +00:00
Donate keyboard focus when creating a secondary modal
This commit is contained in:
@ -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
|
// Method should be "POST" for creation
|
||||||
secondary.method = secondary.method || 'POST';
|
secondary.method = secondary.method || 'POST';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user