set done attribute on todo-item element

fixed an issue that `done` attribute was not set correctly for `todo-item` elements.