but there is a difference between event that is available in sourceInfo object and the event that onChange function accepts.
My onChange function comes from Material UI input and takes ChangeEvent<HTMLInputElement>, but the sourceInfo.event type is SyntheticEvent<HTMLInputElement, Event>. Because of that there is a problem with using stopPropagation() and preventDefault() functions, because they don't exist in the SyntheticEvent. For example I can't do something like this
I belive this issue can happen in many different cases, not only when integrating NumericFormat component with MUI. Is there anything I can do with that?
Hi, I would like to pass a whole change event to the onChange callback when using the onValueChange prop like this:
but there is a difference between event that is available in sourceInfo object and the event that onChange function accepts. My onChange function comes from Material UI input and takes
ChangeEvent<HTMLInputElement>
, but the sourceInfo.event type isSyntheticEvent<HTMLInputElement, Event>
. Because of that there is a problem with using stopPropagation() and preventDefault() functions, because they don't exist in the SyntheticEvent. For example I can't do something like thisI belive this issue can happen in many different cases, not only when integrating NumericFormat component with MUI. Is there anything I can do with that?