Resolved on outside click sort by option is not hiding