ftlabs / fastclick

Polyfill to remove click delays on browsers with touch UIs
MIT License
18.66k stars 3.23k forks source link

FastClick.sendClick raise JS error on Windows Phone IE11 #491

Open larest opened 8 years ago

larest commented 8 years ago

FastClick.sendClick raise JS error on Windows Phone IE11 cause blur() is not supported

fix can be like that: `FastClick.prototype.sendClick = function(targetElement, event) { var clickEvent, touch;

    // On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24)
    if (document.activeElement && document.activeElement.blur && document.activeElement !== targetElement) {
        document.activeElement.blur();
    }`
granisaber commented 6 years ago

is there any update on this? I have the same issue

nikise1 commented 5 years ago

I've added a pull request for this: https://github.com/ftlabs/fastclick/pull/578/files