Hide checked todos. Not yet working.

Please help with why the hidden attribute gets ignored in some cases.