gcanti / tcomb-form

Forms library for react
https://gcanti.github.io/tcomb-form
MIT License
1.16k stars 136 forks source link

Unable to disable the t.date field #386

Open Aadesh05 opened 7 years ago

Aadesh05 commented 7 years ago

Version

Tell us which versions you are using:

Expected behaviour

According to change log this issue is fixed in v0.5.4, but I can't disable the date fields still!

Actual behaviour

t.struct({ dateOfBirth: t.Date, })

var options = { fields: { dateOfBirth: { label: 'Date Of Birth', disabled: true, config: { format: (date) => Moment(date).format('Do MMM YYYY') } }

still the date of birth is tappable.

Can somebody help/ correct me what am I doing wrong ?