Closed alexfauquette closed 1 month ago
Fix #12921
The issue seems to come from the useSlotProps which try to guess props types from the component Bar
useSlotProps
Bar
Wich can be a styled(animated.rect) or a rect component with some additional props.
styled(animated.rect)
rect
To simplify all that:
BarProps
x
y
width
height
BarElementPath
styles only get access the the
Deploy preview: https://deploy-preview-13137--material-ui-x.netlify.app/
Generated by :no_entry_sign: dangerJS against e15d286d0aa060401bbd7b4398f2bdabc70ed532
Fix #12921
The issue seems to come from the
useSlotProps
which try to guess props types from the componentBar
Wich can be a
styled(animated.rect)
or arect
component with some additional props.To simplify all that:
BarProps
such that it knows it needs to expect propsx
,y
,width
, andheight
to be animated onesBarElementPath
such thatstyles only get access the the
BarProps`