I'm not sure I understand what's going on here. For one thing, this way of selecting an element look like it would break if the UI ever got internationalized (and hence "Cancel" might sometimes be something else).

Also, the comment says that that clicking outside a comment form should cause the form to disappear. It looks like this functionality is not being retained. Is this correct?

The other thing that's confusing me is what this has to do with action items. I'd thought that this show/hide stuff was purely to do with comments.