ColorInputPicker: Fix popover in disabled state (#54000) (#54042)

(cherry picked from commit 2caaa7fba2)

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2022-08-22 11:13:12 -04:00
committed by GitHub
co-authored by Alex Khomenko
parent 3892a175f5
commit 1639dad624
@@ -51,7 +51,7 @@ export const ColorPickerInput = forwardRef<HTMLInputElement, ColorPickerInputPro
return (
<ClickOutsideWrapper onClick={() => setIsOpen(false)}>
<div className={styles.wrapper}>
{isOpen && (
{isOpen && !inputProps.disabled && (
<RgbaStringColorPicker
data-testid={'color-popover'}
color={currentColor}