Only hide on submit if .close-panel is set.

The submit generally acts on the form element, so the form needs to have
.close-panel if submitting it needs to close the tooltip.