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