fix: multiple input element's in a single control

This commit is contained in:
Devin Slauenwhite 2023-06-05 15:14:45 -04:00
parent cb885a86ae
commit 40603a89c5

View file

@ -963,7 +963,15 @@ export default class GridRow {
}
var col = this;
let first_input_field = $(col).find('input[type="Text"]:first');
first_input_field.trigger("focus");
let input_in_focus = false;
$(col).find("input[type='Text']").each(function () {
if($(this).is(":focus")) {
input_in_focus = true;
}
});
!input_in_focus && first_input_field.trigger("focus");
if (event.pointerType == "touch") {
first_input_field.length && on_input_focus(first_input_field);