Steps to reproduce
- Open test.html demo ( http://webix.com/temp/test_ief.html )
- Start typing in the first input
- Click in the second input (“change” event listener is fired and focus() is called for the third input)
- The problem is that document.activeElement refers to the third input (that is correct). However, cursor is in the second one.
Comments and activity
- Microsoft Edge Team
Changed Status to “Confirmed”
Changed Assigned To to “Brad E.”
Changed Assigned To to “Bogdan B.”
I’ve reproduced this bug using test.html in EdgeHTML 16.16299.
I’ve also encountered a similar issue with focus in Edge:
I have two inputs. The first input has an event listener for the focus event that switches focus to the second input.
After clicking on the first input, the document.activeElement always changes to the second input. But sometimes the cursor remains in the first input.
This occurs with Edge on a Surface Pro using touch, but not with Edge on a desktop computer using the mouse. When it occurs, the virtual keyboard does not appear.
By using a long setTimeout to delay the focus event, it is possible to ensure the focus moves to the second input. But the virtual keyboard sometimes disappears when doing this.