Edge - Select() needs to be wrapped in Timeout

Issue #15641009 • Assigned to Bogdan B.

Details

Author
Matt W.
Created
Jan 26, 2018
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
41.16299
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

onfocus event in javascript needs to be wrapped in a setTimeout if trying to select

 <input name="ipt_FAIL" type="text" value="1" onfocus="SetFocus(this)" />
 <input name="ipt_PASS" type="text" value="2" onfocus="SetFocusTO(this)" />  

with javascript functions:

 function SetFocus(el){
      el.select();
 }
 function SetFocusTO(el){
      setTimeout(function(){
           el.select();
      }, 1);
 }

Only the second input will select() to highlight the text.

Attachments

1 attachment

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Steven K.”

  • Hello, was wondering if there was any status change for this issue?

    Thank you.

  • Microsoft Edge Team

    Changed Assigned To from “Steven K.” to “Bogdan B.”

    Changed Status to “Won’t fix”

    Changed Status from “Won’t fix”

  • Reactivating auto-resolved valid bugs reported by web dev community. Those were not expected to be resolved. We apologize for any inconvenience!

  • Microsoft Edge Team

    Changed Assigned To to “Bogdan B.”

  • Hello, was still wondering if there is any status update to this issue?

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

Sign in