Fix input field behaviour inside context menus (#7293)
This commit is contained in:
committed by
GitHub
parent
275e9c1d02
commit
2e4fe7891a
@@ -73,7 +73,7 @@ import LegacyCommunityPreview from "./LegacyCommunityPreview";
|
||||
// NB. this is just for server notices rather than pinned messages in general.
|
||||
const MAX_PINNED_NOTICES_PER_ROOM = 2;
|
||||
|
||||
function getInputableElement(el: HTMLElement): HTMLElement | null {
|
||||
export function getInputableElement(el: HTMLElement): HTMLElement | null {
|
||||
return el.closest("input, textarea, select, [contenteditable=true]");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user