tcomb-form icon indicating copy to clipboard operation
tcomb-form copied to clipboard

Unable to disable the t.date field

Open Aadesh05 opened this issue 8 years ago • 0 comments

Version

Tell us which versions you are using:

  • tcomb-form v0.6.7
  • react v16.0.0-alpha.6
  • react-native v0.43.4

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 ?

Aadesh05 avatar May 02 '17 12:05 Aadesh05