FIX: Bug with edit reason on iOS (#29987)

This commit is contained in:
Penar Musaraj
2024-11-28 13:47:39 -05:00
committed by GitHub
parent c98335e4e5
commit ba85fba1e4

View File

@@ -49,6 +49,7 @@ function positioningWorkaround(fixedElement) {
// - invoking emoji dropdown via : and hitting return
// - invoking a button in the editor toolbar
// - tapping on emoji in the emoji modal
// - tapping on the edit reason icon/input
if (
lastTouchedElement &&
@@ -59,7 +60,8 @@ function positioningWorkaround(fixedElement) {
(lastTouchedElement.nodeName === "TEXTAREA" &&
document.activeElement === lastTouchedElement) ||
lastTouchedElement.closest(".d-editor-button-bar") ||
lastTouchedElement.classList.contains("emoji"))
lastTouchedElement.classList.contains("emoji") ||
lastTouchedElement.closest(".display-edit-reason"))
) {
return;
}