Skip to content

In jQuery 3.4.0+ in IE a focus-blur-focus sequence doesn't leave the element focused #4856

@mgol

Description

@mgol

Description

Invoking:

$( inputNode )
	.trigger( "focus" )
	.trigger( "blur" )
	.trigger( "focus" );

leaves input focused in all browsers except IE.

I discovered it while working to fix the remaining jQuery UI issues when tested against Core 3.6.0+. Interestingly, the relevant UI issue doesn't manifest itself in 3.4 & 3.5, I'm not sure why.

A relevant UI test run: http://swarm.jquery.org/result/3963629. That's the "dialog: core: focus tabbable" test.

Link to test case

https://jsbin.com/zoyowez/1/edit?html,js,output

Changing the jQuery version to 3.3.1 makes it work again.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions