fix(ui): Prevent Command from triggering while a editable field has focus (#11254)
Resolves CMRC-909
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
const isInputElement = (element: Element | null): boolean => {
|
||||
return (
|
||||
element instanceof HTMLElement &&
|
||||
(element.isContentEditable ||
|
||||
element.tagName === "INPUT" ||
|
||||
element.tagName === "TEXTAREA" ||
|
||||
element.tagName === "SELECT")
|
||||
)
|
||||
}
|
||||
|
||||
export { isInputElement }
|
||||
Reference in New Issue
Block a user