mirror of
https://github.com/discourse/discourse.git
synced 2024-12-19 10:48:12 +08:00
FIX: Composer position on DiscourseHub iOS (#30204)
Ensures composer does not go out of view after adding an upload.
This commit is contained in:
parent
34152f10b0
commit
0affb5c0bc
|
@ -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 upload button
|
||||
// - tapping on the edit reason icon/input
|
||||
|
||||
if (
|
||||
|
@ -61,6 +62,7 @@ function positioningWorkaround(fixedElement) {
|
|||
document.activeElement === lastTouchedElement) ||
|
||||
lastTouchedElement.closest(".d-editor-button-bar") ||
|
||||
lastTouchedElement.classList.contains("emoji") ||
|
||||
lastTouchedElement.closest(".mobile-file-upload") ||
|
||||
lastTouchedElement.closest(".display-edit-reason"))
|
||||
) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue
Block a user