dont set selectionStart on non-text inputs with async table response

This commit is contained in:
Felix Hamann 2019-05-19 11:35:13 +02:00
parent 0f1abf6cd1
commit c4e6b757f9
2 changed files with 1 additions and 2 deletions

View File

@ -200,7 +200,7 @@
var focusedInput = tableFilterForm.querySelector(':focus, :active');
// focus previously focused input
if (focusedInput) {
if (focusedInput && focusedInput.selectionStart !== null) {
var selectionStart = focusedInput.selectionStart;
var focusId = focusedInput.id;
callback = function(wrapper) {

View File

@ -51,7 +51,6 @@
var modalUrl;
function _init() {
console.log('modalUtil.init', { element });
if (!element) {
throw new Error('Modal utility cannot be setup without an element!');
}