javascriptjquerycheckboxclickselection-api

Error by fast clicking on checkbox


Disabling off all JS and CSS, doesn't solve the problem. After fast clicking I still get error.

I don't understand why it happens.
jQuery: 1.9.1.
Chrome 26.0.1410.64 m

$(".checkbox-list input").click(function(){
    that = $(this);
    that.closest('li').toggleClass('someClass', that.is(':checked'));
});

After fast click I'm gettin':

TypeError: Accessing selectionStart on an input element that cannot have a selection. [http://site.domain/page/anotherPage:848]

I don't get it... The Line #848 doesn't exist at all, my max line is 309.
I think it happens probably because one function executes many times at the same time... ?

Thanks for answering!

UPD

Chrome console output:

Uncaught TypeError: Accessing selectionStart on an input element that cannot have a selection.

UPD 2

I found the problem in Chrome extensions "Lingualeo", that have dblclick event on all of the dom elements, that caused this bug.

Thanks everyone for help.


Solution

  • Thanks everyone for help. I found the problem in Chrome extensions "Lingua Leo", that have dblclick event on all of the dom elements, that caused this bug.