ColorInputPicker: Fix popover in disabled state (#54000)

This commit is contained in:
Alex Khomenko 2022-08-22 18:01:33 +03:00 committed by GitHub
parent 38017fd3f5
commit 2caaa7fba2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}