Skip to content Skip to sidebar Skip to footer

Synchronous Ajax Request Focus Wrong Element In Firefox

I'm having a strange bug and I don't understand what's going wrong. When handling TAB key in my application Firefox will give focus to a wrong element if I perform a synchronous AJ

Solution 1:

I dont have the required environment to replicate but i have a longshot suggestion that might work for you. Try wrapping the ajax call inside

setTimeout(function() { your call here}, 1);

See how it goes.

EDIT:

Binding callback to the ajax

$.ajax().done(function (data) { console.log(data); });

Post a Comment for "Synchronous Ajax Request Focus Wrong Element In Firefox"