Skip to main content

Bug Tracker

Side navigation

#13934 closed bug (notabug)

Opened May 24, 2013 04:03AM UTC

Closed May 27, 2013 04:39PM UTC

Dialog - "autofocus" attribute do not work in IE sometimes

Reported by: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:

I tested this bug is found at least found in IE8-9

The jQuery ui version tested is 1.10.3

If user edit a textfield A, and then click textfield B immediately, at the same time, the onchange event of A open a dialog for data verification purpose.

The focus will remain in textfield A, which is very bad behaviour for data verification dialog

jsbin and jsfiddle do not work with IE8, so i post my code here

<!doctype html>
<meta charset="utf-8" />
<link rel="stylesheet" href="" />
<script src=""></script>
<script src=""></script>
function showdialog(){
$( "#dialog" ).dialog();

    		,10000);	//10s timeout

<div id="dialog" style="display:none">
The autofocus do not work in IE
(workaround will focus it after 10s)
<input id=testinput autofocus />
Type a few letter in this textarea and click another textarea immediately.<input onchange="showdialog();" />
<input >
Attachments (0)
Change History (3)

Changed May 24, 2013 04:06AM UTC by anonymous comment:1

There is no version "1.10.3" for selection when create ticket, please change to 1.10.3

Changed May 24, 2013 12:16PM UTC by anonymous comment:2

The test code will not function in jsbin and jsFiddle for IE at all.

The test code must be saved as a html file and then open by IE

Changed May 27, 2013 04:39PM UTC by dmethvin comment:3

resolution: → notabug
status: newclosed

This is the jQuery core bug tracker. You may want the UI bug tracker but perhaps should ask for help on a forum first.