checkbox.attr('checked') doesnt trigger repaint on jelly bean android browser on galaxy nexus
Opened this issue · 0 comments
max-mapper commented
If you use $('.someCheckboxInput').attr('checked')
to change the checked
status of a checkbox it wont repaint css rules matching input[type="checkbox"]:checked
a workaround is to call a function like this after you change the checkbox on elements that should get updated:
function redraw(obj) {
obj.hide()
obj.each(function() { this.offsetHeight })
obj.show()
}
simply accessing the offsetHeight
property forces a redraw