At the moment, because the label is returned, we have no way of chaining the check() or uncheck() calls. Passing in a param to check or uncheck solves this. Defaults to false, so it doesn't break any existing calls, and since that's the default behaviour anyway at the moment.
Ah good catch. I was looking into seeing if it would be simple to support chaining but it's probably not worth it just for checkboxes so this implementation looks good :+1: Thanks!
At the moment, because the label is returned, we have no way of chaining the
check()
oruncheck()
calls. Passing in a param to check or uncheck solves this. Defaults tofalse
, so it doesn't break any existing calls, and since that's the default behaviour anyway at the moment.