aboutsummaryrefslogtreecommitdiff
path: root/ext/js/pages/settings
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/pages/settings')
-rw-r--r--ext/js/pages/settings/scan-inputs-controller.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/js/pages/settings/scan-inputs-controller.js b/ext/js/pages/settings/scan-inputs-controller.js
index 855ccf9a..f6851eb2 100644
--- a/ext/js/pages/settings/scan-inputs-controller.js
+++ b/ext/js/pages/settings/scan-inputs-controller.js
@@ -116,6 +116,12 @@ class ScanInputsController {
deleteCount: 0,
items: [scanningInput]
}]);
+
+ // Scroll to bottom
+ const button = e.currentTarget;
+ const modalContainer = button.closest('.modal');
+ const scrollContainer = modalContainer.querySelector('.modal-body');
+ scrollContainer.scrollTop = scrollContainer.scrollHeight;
}
_addOption(index, scanningInput) {