mirror of
https://github.com/discourse/discourse.git
synced 2025-03-30 23:26:04 +08:00
FIX: Bug with edit reason on iOS (#29987)
This commit is contained in:
parent
c98335e4e5
commit
ba85fba1e4
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user