fix: multiple input element's in a single control
This commit is contained in:
parent
cb885a86ae
commit
40603a89c5
1 changed files with 9 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue