# Опция «Прикрепить файл» не реагирует в Safari для десктопа

**URL:** https://meta.discourse.org/t/attach-a-file-option-unresponsive-in-desktop-safari/393639
**Category:** Bug
**Tags:** uploads, chat
**Created:** [16.Январь.2026 05:47:25 UTC](https://meta.discourse.org/t/attach-a-file-option-unresponsive-in-desktop-safari/393639 "2026-01-16T05:47:25Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [29.Январь.2026 09:49:40 UTC](https://meta.discourse.org/t/attach-a-file-option-unresponsive-in-desktop-safari/393639/6 "2026-01-29T09:49:40Z")

</div>

К сожалению, исправление сломало «опции» в этом списке, открывающие модальное окно…

> <https://github.com/discourse/discourse/pull/37378>
>
> Commit 9cbb0c3da3 fixed Safari file uploads by removing async/await from the but…ton click handler, but this introduced a regression: modal-based buttons (like "Insert date/time") stopped working on mobile.
> 
> The issue is a race condition where the modal tries to open while the dropdown menu modal is still closing, causing the new modal to be dismissed immediately.
> 
> This fix introduces a \`synchronous\` property for chat composer buttons:
> 
> \- \`synchronous: true\` - action runs immediately without awaiting the menu close (required for file inputs on Safari)
> \- \`synchronous: false\` (default) - awaits menu close before running action (required for modal-based buttons)
> 
> The upload button is marked with \`synchronous: true\` to preserve the Safari fix, while all other buttons use the default async behavior.

---

_[View the full topic](https://meta.discourse.org/t/attach-a-file-option-unresponsive-in-desktop-safari/393639)._
