FIX: Avoid unpinning composer on iOS when invoking emojis
Specifically when invoking emoji dropdown using a colon and pressing Return.
This commit is contained in:
parent
78969d7719
commit
68124caae2
|
@ -116,12 +116,16 @@ function positioningWorkaround($fixedElement) {
|
||||||
// - switching to another iOS app
|
// - switching to another iOS app
|
||||||
// - invoking a select-kit dropdown
|
// - invoking a select-kit dropdown
|
||||||
// - invoking mentions
|
// - invoking mentions
|
||||||
|
// - invoking emoji dropdown via : and hitting return
|
||||||
// - invoking a toolbar button
|
// - invoking a toolbar button
|
||||||
|
|
||||||
if (
|
if (
|
||||||
lastTouchedElement &&
|
lastTouchedElement &&
|
||||||
(document.visibilityState === "hidden" ||
|
(document.visibilityState === "hidden" ||
|
||||||
$(lastTouchedElement).hasClass("select-kit-header") ||
|
$(lastTouchedElement).hasClass("select-kit-header") ||
|
||||||
$(lastTouchedElement).closest(".autocomplete").length ||
|
$(lastTouchedElement).closest(".autocomplete").length ||
|
||||||
|
(lastTouchedElement.nodeName.toLowerCase() === "textarea" &&
|
||||||
|
document.activeElement === lastTouchedElement) ||
|
||||||
["span", "svg", "button"].includes(
|
["span", "svg", "button"].includes(
|
||||||
lastTouchedElement.nodeName.toLowerCase()
|
lastTouchedElement.nodeName.toLowerCase()
|
||||||
))
|
))
|
||||||
|
|
Loading…
Reference in New Issue