Optimized autosuggestion closing behaviour