我正在使用 react bootstrap,这个框架提供了一些不错的 FormControls。
但我想让 FormControls 中生成的 Input 字段具有 readonly="readonly" 的属性。这样,这个字段看起来和我的其他 FormControls 一样,但在 IOS 上没有给出键盘输入。
就我而言,输入将由日历选择器提供,该选择器将由弹出框触发。
有谁知道如何给 FormControl 参数 readonly="readonly",以便在浏览器中生成的 Input 字段将具有 prop readonly="readonly"?
许多thnx的答案!