# Discourse GIFs TC에서 GIF를 추가할 때 왜 app event 대신 toolbarEvent를 사용하지 않나요?

**URL:** https://meta.discourse.org/t/why-doesnt-discourse-gifs-tc-use-toolbarevent-instead-of-app-event-when-adding-the-gif/387629
**Category:** Development
**Tags:** gifs
**Created:** [11월 5, 2025, 3:34오전 UTC](https://meta.discourse.org/t/why-doesnt-discourse-gifs-tc-use-toolbarevent-instead-of-app-event-when-adding-the-gif/387629 "2025-11-05T03:34:28Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [11월 6, 2025, 2:37오후 UTC](https://meta.discourse.org/t/why-doesnt-discourse-gifs-tc-use-toolbarevent-instead-of-app-event-when-adding-the-gif/387629/6 "2025-11-06T14:37:08Z")

</div>

discourse-gifs가 툴바 외부에서도 모달이 열리기 때문에 이렇게 처리하는 것 같습니다:

> <https://github.com/discourse/discourse-gifs/blob/1fa66e5fb2692241dac6c743c7f7db064244b378/javascripts/discourse/components/gif-button.gjs#L13C3-L16C4>

새로 만들 기능이 완전히 툴바 기반으로 동작한다면, toolbarEvents를 사용하는 것이 더 깔끔하다는 데 동의합니다 👌

---

_[View the full topic](https://meta.discourse.org/t/why-doesnt-discourse-gifs-tc-use-toolbarevent-instead-of-app-event-when-adding-the-gif/387629)._
