Ensure the dropdown disappears after use