malsup / blockui

jQuery BlockUI Plugin
http://jquery.malsup.com/block/
1.69k stars 506 forks source link

When unblocking the UI wait cursor doesn't go away on IE 10 #59

Closed leniel closed 10 years ago

leniel commented 11 years ago

Using this code:

$(document).ajaxStart($.blockUI).ajaxStop($.unblockUI);

I know there's already some code to correct this issue here: https://github.com/malsup/blockui/blob/master/jquery.blockUI.js#L118-L120

// style to replace wait cursor before unblocking to correct issue of lingering wait cursor
cursorReset: 'default',

This doesn't act on IE 10 unfortunately.

As always, if I move the mouse the wait cursor goes way, but this is not good from a user point of view, that is, the user has to move the mouse. The cursor should reset back to the default one automatically.

Works great with latest Chrome 24 and Firefox 18.

ddkongbb commented 11 years ago

My workaround, add the following lines at the end of function remove().

// remove the block function remove(el, opts) {

.........

// restore the default cursor els.each(function(i,o) { $(o).css('cursor', 'default'); });

};

leniel commented 11 years ago

@ddkongbb did not work for me... tried to debug it with IE 10 on Windows 8 and the breakpoint I put inside jQuery each did not got hit. In Firebug it hit the breakpoint... :)

malsup commented 11 years ago

I don't have a fix for this IE10 issue at the moment. But you don't have to use the wait cursor, it's an option. You can override it like this:

$.blockUI.defaults.css.cursor = 'default';
$.blockUI.defaults.overlayCSS.cursor = 'default';
leniel commented 10 years ago

It's was still happening in IE 11. :(

I found something that worked here: http://forum.jquery.com/topic/jquery-blockui-v2-20-hourglass-cursor-stays-in-ie-7#14737000000428641

littlell commented 10 years ago

save me a lot time..