Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
176
rated 0 times [  182] [ 6]  / answers: 1 / hits: 16148  / 6 Years ago, sat, june 16, 2018, 12:00:00

I am simply trying to disable a field in redux-form as shown below but it does not seem to have any effect. This is redux-form version 7.4.2.



  <Field
name=mu
type=text
component={renderField}
label=DRIFT FUNCTION [ μ(X(t),t) ]:
disabled={true}
validate={[required]}
/>


Also



  <Field
name=mu
type=text
component={renderField}
label=DRIFT FUNCTION [ μ(X(t),t) ]:
props={{ disabled: true }}
validate={[required]}
/>


Any help please


More From » reactjs

 Answers
10

input={{
disabled: true,
}}



add this to your Field tag


[#54188] Tuesday, June 12, 2018, 6 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jaredsages

Total Points: 273
Total Questions: 97
Total Answers: 105

Location: French Southern and Antarctic Lands
Member since Fri, Jan 6, 2023
1 Year ago
jaredsages questions
;