dont set selectionStart on non-text inputs with async table response
This commit is contained in:
parent
0f1abf6cd1
commit
c4e6b757f9
@ -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) {
|
||||
|
||||
@ -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!');
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user