mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
[WEB-3745] fix: color picker event propagation (#6859)
This commit is contained in:
committed by
GitHub
parent
523ab3f4a1
commit
0db581509c
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user