This repository was archived by the owner on Aug 23, 2022. It is now read-only.
v1.10.2
This reverts the previous patch - standard prop mappings (such as onChange
, onBlur
, etc.) will be passed onto <Control>
components with custom components, as expected. See #743 for why that was important.
If you do not want any standard property mappings (such as onChange
, onBlur
, etc.) passed down to your custom control component, use <Control.custom>
and define your own mappings:
<Control.custom
component={SpecialCustomText}
mapProps={{
onTextChange: (props) => props.onChange,
onLoseFocus: (props) => props.onBlur,
// etc.
}}
/>