I wonder if this is not faster to just get all input and set checked = true to all them.

also, I see we're doing this query a lot, it would probably make sense to keep an array of the dom we added when we trigger the edit mode.

(all this could be in another patch, that's just ideas that I have when I read it)