Refactor hideOnClickOutside to fix misbehaviors
Release 0.3.2