bugfix for the plugin not closing if applied straight to the text input and not to a wrapper div