I just came across another strange behavior in Chrome: when you click on a flag or its label, the flag does not receive focus (the body focuses instead).
This can be seen here: http://jsfiddle.net/YfbR7/7/ ( see code sample here )
see code sample here
Is there a workaround to make the checkbox get focus, for example, in other browsers?
You can also solve this problem.
$(function () { $("input[type=checkbox]").click(function (event) { $(this).parent().css("background", "red"); }); })
Source: https://habr.com/ru/post/952348/More articles:How to delete a string in a numpy array that contains zero? - pythonHow to copy a TXT file to a char array in C ++ - c ++Cannot reduce cyclic complexity in Factory method without using reflection - reflectionSpring: @Transactional @Scheduled throws TransactionException method - javaLinks do not get focus when clicking on Chrome - javascriptImport partial data into MySQL from CSV - mysqldocument.activeElement does not work properly in Chrome, what are the alternatives? - javascriptDjango tastypie, it is possible to return only metadata for a request - djangoHtml Agility Pack - New HtmlAttribute - htmlThree.JS object after spline path - rotation / touch problems and constant speed problem - mathAll Articles