Use mouseup instead of click on delete button

This is a possible fix for issue #2306. It changes `click` to `mouseup` as the event to close an entry in the list.

It seems that jquery `click` event is not triggered if the mouse is already over the svg element when the old one is removed and the new one rendered, but `mouseup` is.

I'd say it has something to do with the lack of `mouseenter`, but I haven't been able to replicate it anywhere else outside this.