angular / angular/components

how to keep autocomplete panel open when click outside the panel without select option?

未关闭
#15,899 9 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看
area: material/autocomplete feature P4
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

#### Bug, feature request, or proposal:
this is a feature request

#### What is the expected behavior?
i want to keep autocomplete panel open when click outside the panel without select an option

#### What is the current behavior?
the panel is closed when click outside

#### What are the steps to reproduce?
https://stackblitz.com/angular/ynbmnnrjolq

#### What is the use-case or motivation for changing an existing behavior?

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
i work with angular 7.x

#### Is there anything else we should know?

贡献指南

打开贡献指南

调研方向

从链接的 StackBlitz 重现和其中的 Angular 7.x autocomplete 设置开始。跟踪点击外部后关闭面板的行为,然后定义相应的更改,使未选择任何选项时面板仍保持打开。完成的标准是,重现的交互会在不选择选项的情况下保持面板打开。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
frontend
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。