fix: creating text while color picker open (#6651)
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
This commit is contained in:
@ -60,6 +60,13 @@ export const isInputLike = (
|
||||
target instanceof HTMLTextAreaElement ||
|
||||
target instanceof HTMLSelectElement;
|
||||
|
||||
export const isInteractive = (target: Element | EventTarget | null) => {
|
||||
return (
|
||||
isInputLike(target) ||
|
||||
(target instanceof Element && !!target.closest("label, button"))
|
||||
);
|
||||
};
|
||||
|
||||
export const isWritableElement = (
|
||||
target: Element | EventTarget | null,
|
||||
): target is
|
||||
|
Reference in New Issue
Block a user