Replies: 1 comment
-
Generally speaking, disabled controls are an anti-pattern, and the concept of a "disabled ColorPicker" doesn't make sense, because it currently only provides the UI inside the popover. But if you really want to disable the ColorPicker, you should disable its triggering button, so that the popover doesn't even show up. <Popover content={<ColorPicker />}>
<Button disabled>Pick color</Button>
</Popover> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently I have added ColorPicker to form. It works great however I have a situation where I want to disable ColorPicker or make it readable only in certain situation.
Beta Was this translation helpful? Give feedback.
All reactions