angular / angular/angular

Add readonly to FormControl formstate

未關閉
#11,447 115 則留言 261 個 reaction 已指派 0 人 在 GitHub 檢視
Accessibility area: forms feature feature: under consideration freq2: medium state: Needs Design
主要語言
TypeScript
星號
101k
分支
27.5k
平均合併
1 天 20 小時
30 天內合併 PR
299

描述

**I'm submitting a ...** (check one with "x")

```
[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
```

Currently there is a "disabled" flag which will disable the control, and also disable the validator.
But there also should be a "readonly" flag which do not disable the validator.

**Current behavior**
- Does not exist -

**Expected behavior**
- Explained above -

**What is the motivation / use case for changing the behavior?**

**Please tell us about your environment:**
- **Angular version:** 2.0.0-rc.6
- **Browser:** [all]
- **Language:** [all]
- **Node (for AoT issues):** `node --version` = 6.5.0

貢獻指南

開啟貢獻指南

研究方向

該 issue 未指定檔案、測試或進入點。先找出 Angular 的 FormControl 表單狀態實作,以及現有的 disabled 狀態涵蓋範圍;當支援 readonly 狀態、同時維持驗證有效,且不變更 disabled 行為時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
angular, typescript
領域
frontend
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。