Fix input field behaviour inside context menus (#7293)
This commit is contained in:
parent
275e9c1d02
commit
2e4fe7891a
2 changed files with 5 additions and 1 deletions
|
@ -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]");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue