> I wonder if this is not faster to just get all input and set checked = true to all them.

I would assume, but I was also trying to avoid indulging in optimizations. 

> 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.

Completely agree.

> (all this could be in another patch, that's just ideas that I have when I read it)

Sounds good