[WEB-3745] fix: color picker event propagation (#6859)
This commit is contained in:
parent
523ab3f4a1
commit
0db581509c
1 changed files with 3 additions and 1 deletions
|
|
@ -12,7 +12,9 @@ export const ColorPicker: React.FC<ColorPickerProps> = (props) => {
|
|||
const inputRef = React.useRef<HTMLInputElement>(null);
|
||||
|
||||
// handlers
|
||||
const handleOnClick = () => {
|
||||
const handleOnClick = (e: React.MouseEvent<HTMLButtonElement>) => {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
inputRef.current?.click();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue