# HG changeset patch # User Oleksandr Gavenko # Date 1433669426 -10800 # Node ID 2709c9ff04f0a09231e7f3b054753a456192fa19 # Parent 896cd3541eced3d44aabc87040ee24f5e2e5028e Fix: preventDefault() forbid checking checkbox. diff -r 896cd3541ece -r 2709c9ff04f0 2048.html --- a/2048.html Wed Jan 07 19:58:44 2015 +0200 +++ b/2048.html Sun Jun 07 12:30:26 2015 +0300 @@ -359,7 +359,7 @@ ui.board = {}; ui.board.val2048Dom = document.getElementById('2048'); ui.board.val2048Dom.addEventListener("click", function(event) { - event.preventDefault(); event.stopPropagation(); + event.stopPropagation(); ui.board.update(ui.board.position); localStorage.val2048 = ui.board.val2048Dom.checked; event.target.blur();