React-day-picker: DayPickerInput prevent from typing

Created on 1 Jun 2018  路  1Comment  路  Source: gpbl/react-day-picker

Hi,

I was reading the docs but I didn't find a prop that I could send to the component in order to prevent user from typing in the input.

Is there a way to do it?

Thanks

Most helpful comment

inputProps prop should work:

<DayPickerInput inputProps={{ readOnly: true }} />

>All comments

inputProps prop should work:

<DayPickerInput inputProps={{ readOnly: true }} />
Was this page helpful?
0 / 5 - 0 ratings

Related issues

davidjbradshaw picture davidjbradshaw  路  3Comments

brpontes picture brpontes  路  6Comments

michaelgriffithus picture michaelgriffithus  路  5Comments

kostiantyn-solianyk picture kostiantyn-solianyk  路  4Comments

mcapodici picture mcapodici  路  3Comments