Skip to content

Commit

Permalink
don't check for empty for color picker
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawan Kumar authored and Pawan Kumar committed Sep 6, 2024
1 parent d37e8d2 commit 11ba202
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -546,9 +546,7 @@ const ColorPickerComponent = React.forwardRef(

const handleChangeColor = useCallback(
(event: React.ChangeEvent<HTMLInputElement>) => {
const value = event.target.value;

if (!value) return;
const value = event.target.value || "";

if (isValidColor(value)) {
debouncedOnChange(value, true);
Expand Down

0 comments on commit 11ba202

Please sign in to comment.