You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see. Would be a bummer for me, as I got some backends that don't support alpha values - so I would not be able to remove another library in favour of using the antd component.
Until it's decided it might be a good Idea to add it to the Omit<RcColorPickerProps, 'onChange' | 'value' | 'defaultValue' | 'panelRender' | 'disabledAlpha' > nonetheless.
Because right now, TypeScript would suggest it to anyone using the ColorPicker (that's how I found it).
Still, the issue with the data- props (and any others that are not omitted) remains. They will be accepted but not actually relayed to the actual picker (and in the end the DOM node).
Reproduction link
Steps to reproduce
disabledAlpha
.What is expected?
The slider and value box for the alpha value should not be visible
What is actually happening?
They are visible and can be interacted with, changing the value.
The props are typed to accept several props from the rc-color-picker but not all props are actually being relayed.
See:
https://github.com/ant-design/ant-design/blob/master/components/color-picker/ColorPicker.tsx#L29-L79
Not spreading the
...rest
props might lead to other issues as well (e.g.data-
attributes and others not being relayed)The text was updated successfully, but these errors were encountered: