Cursor is jumping at the last of form field when text is typed in between.
Summary
Using oj-input-text , cusror is jumping at the last on typing any character in between the form field.Content
Using oj-input-text , cursor is jumping at the last on typing any character in between the form field.
Same thing is working when given <input> instead of <oj-input-text>
I have used the below code JS where 'firstName' is the id for firstname form field.
$("#firstName").on('input', function(){
// store current positions in variables
var start = this.selectionStart,
end = this.selectionEnd;
this.value = this.value.toLowerCase();
// restore from variables...
this.setSelectionRange(start, end);
});
But it is showing setSelectionRange() is not a function on using <oj-input-text>
0