osstotalsoft / rocket-ui-ts

A collection of reusable and composable React components written in TypeScript built on top of Material UI Core V5
MIT License
19 stars 4 forks source link

DateTime api alignment #66

Closed st-angelo closed 1 year ago

st-angelo commented 1 year ago

Latest version

Description

DateTime can be set as clearable with the clearable prop, while for the rest of the inputs (Autocomplete, TextField, DynamicField) it's called isClearable.

The required property, that can be passed directly to other inputs, has to be passed through inputProps (inputProps={{ required: true }}).

This means we have to be constantly aware of these differences and bugs happen more often, which they recently did. The input apis should be aligned.