mattermost/mattermost

[Bug]: Add Custom Emoji: file picker can be opened while form is saving

Open

#34,153 opened on 2025年10月15日

GitHub で見る
 (0 comments) (0 reactions) (1 assignee)TypeScript (32,880 stars) (7,823 forks)batch import
Help Wanted

説明

Before you file a bug report

Mattermost Server Version

10.12.0

Build hash: abbf01b9db45d1850eaf3701ea8362b910193ffd

Operating System

MacOS

Steps to reproduce

  1. Click on emoji
  2. Select Custom Emoji.
  3. Click Add Custom Emoji.
  4. In the DevTools, set Network to a slower profile to simulate latency.
  5. Enter a valid emoji Name.
  6. Click Select and choose an Image.
  7. Click Save.
  8. While the form is saving, try clicking Select again and confirm that the file picker opens.

Expected behavior

The file input should be disabled during save:

  • No file picker should open.
  • Previously selected image should remain locked in place.

Observed behavior

  • The file picker dialog opens while the form is saving, allowing the user to change or remove the image mid-submit.
  • This can cause issues on slower networks.

Additional Information

https://github.com/user-attachments/assets/a8dbd1be-05f1-41ae-aca8-fb969da61195

コントリビューターガイド

[Bug]: Add Custom Emoji: file picker can be opened while form is saving · mattermost/mattermost#34153 | Good First Issue