# Очень сложно добавлять пользователей в список в различных модальных окнах в мобильном режиме

**URL:** https://meta.discourse.org/t/add-user-to-list-modal-often-appears-above-the-mobile-viewport-sceen/400974
**Category:** Bug
**Tags:** mobile
**Created:** [19.Апрель.2026 02:55:48 UTC](https://meta.discourse.org/t/add-user-to-list-modal-often-appears-above-the-mobile-viewport-sceen/400974 "2026-04-19T02:55:48Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [20.Апрель.2026 20:50:37 UTC](https://meta.discourse.org/t/add-user-to-list-modal-often-appears-above-the-mobile-viewport-sceen/400974/2 "2026-04-20T20:50:37Z")

</div>

Да, это раздражающее поведение! У меня есть работающий вариант исправления здесь:

> <https://github.com/discourse/discourse/pull/39382>
>
> When we have a dropdown with an input inside of a modal, iOS will attempt to pos…ition the input and ends up shifting up the entire modal to be unreachable. 
> 
> This change avoids the issue by: 
> 
> 1. capturing the current scroll position
> 2. set \`window.scrollTo(0, lockedScrollY)\` to undo iOS' scroll attempt 
> 3. on close, resets to the \`lockedScrollY\` position 
> 
> Before: 
> 
> https://github.com/user-attachments/assets/5e2fe34a-bb24-49c4-849a-d910150d389b
> 
> 
> After: 
> 
> https://github.com/user-attachments/assets/70c51e3f-36d9-4eca-93cf-fd43e4b29878

@j.jaffeux вы много работали с модальными окнами и меню, что вы думаете об этом?

---

_[View the full topic](https://meta.discourse.org/t/add-user-to-list-modal-often-appears-above-the-mobile-viewport-sceen/400974)._
