Changing HTML input selection, inside 'keypress' event, prevents default keyboard typing

Confirmed Issue #15066946 • Assigned to Gokul R.

Details

Author
Nikolay A.
Created
Dec 12, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 4 people

Sign in to watch or report this issue.

Steps to reproduce

Description

When input selection is changed, during keypress event, using the setSelectionRange() method, then the keybard input is prevented and instead the selection takes place.

This is working with old versions of Edge.

Steps to reproduce

  1. Open this sample under Edge
    Microsoft Edge 41.16299.15.0
    Microsoft EdgeHTML 16.16299
  2. Focus input
  3. Type 1

Current result:

  1. Input value stays as 02345
  2. 0 is selected
  3. Input event is not fired

Expected result:

  1. Input value changes to 12345
  2. Nothing is selected
  3. Input event is fired

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Assigned To to “Grisha L.”

      Changed Status to “Confirmed”

      Changed Assigned To from “Grisha L.” to “Gokul R.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in