# Discard Draft modal has header section

**URL:** <https://meta.discourse.org/t/discard-draft-modal-has-header-section/272739>\
**Category:** UX\
**Tags:** completed\
**Created:** [2023年七月25日 07:47 UTC](https://meta.discourse.org/t/discard-draft-modal-has-header-section/272739 "2023-07-25T07:47:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)\
**Post date:** [2023年七月25日 07:47 UTC](https://meta.discourse.org/t/discard-draft-modal-has-header-section/272739/1 "2023-07-25T07:47:21Z")

</div>

你好 👋

我注意到“放弃草稿”模态框有一个标题部分，因为它是 [DEV: Migrate Discard Draft to new Modal API by dbattersby · Pull Request #22755 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/22755)

 ![Screenshot_20230725_095335_com.android.chrome](https://global.discourse-cdn.com/meta/original/4X/4/5/c/45c65e71bc7471d1f554157e24a55e2ccc05e102.jpeg)

谢谢 🙂

---

<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:** [2023年七月25日 12:09 UTC](https://meta.discourse.org/t/discard-draft-modal-has-header-section/272739/2 "2023-07-25T12:09:35Z")

</div>

啊，@davidb 我猜我们需要为这个添加 `@dismissable={{false}}`？

> <https://github.com/discourse/discourse/pull/22777>
>
> The header was accidentally introduced during the refactoring in d8a87792af9afab…c90e16f496205c02cfc7941b6
> 
> 
> 
> 
> 
> \<img width="422" alt="SCR-20230725-mhvs" src="https://github.com/discourse/discourse/assets/6270921/c3ded1b8-ed6c-42ca-be49-6bd4601fda9d"\>
> 
> ⏬ 
> 
> \<img width="430" alt="SCR-20230725-mhsw" src="https://github.com/discourse/discourse/assets/6270921/3fd14878-7b7c-468c-b66e-54f391f82222"\>

---

<div class="post-metadata">

**Author:** ![davidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidb/32/554671_2.png) [@davidb](https://meta.discourse.org/u/davidb)\
**Post date:** [2023年七月26日 05:38 UTC](https://meta.discourse.org/t/discard-draft-modal-has-header-section/272739/3 "2023-07-26T05:38:16Z")

</div>

> [@david](#):
>
> 我猜我们需要给这个添加 `@dismissable={{false}}`？

感谢您的处理 👍

---

<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:** [2023年七月26日 07:00 UTC](https://meta.discourse.org/t/discard-draft-modal-has-header-section/272739/4 "2023-07-26T07:00:47Z")

</div>

此主题已在 18 小时后自动关闭。不再允许回复。
