Right behaviour for outside click.