angular / angular/components

feat(Material Select): Support for readonly attribute in Material Select component

未关闭
#22,740 5 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
area: material/select feature need a11y consult P3
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

#### Feature Description
It should be possible to use a **readonly** property similar to have disabled is used with mat-select (Material Select component)

#### Use Case
When re-submitting a form where some select field should not be editable but resent. Property disabled will in this case simple remove selected value from form.

**This is an example that show how it would be used and how it works now:**
https://stackblitz.com/edit/angular-fj6kyz?file=src/app/select-overview-example.html

贡献指南

打开贡献指南

调研方向

从 Angular Material Select 组件开始,复现所链接 StackBlitz 示例中的行为。实现 readonly 状态,在阻止编辑的同时,不从重新提交的表单中移除已选值,然后验证表单行为和现有的 Select 行为仍然正确。

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

评估

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

把新 issue 发到你的邮箱

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