# Can Panel's modal not disappear if I click outside of it?

**URL:** <https://discourse.holoviz.org/t/can-panels-modal-not-disappear-if-i-click-outside-of-it/5499>\
**Category:** Panel\
**Created:** [June 7, 2023, 7:21am UTC](https://discourse.holoviz.org/t/can-panels-modal-not-disappear-if-i-click-outside-of-it/5499 "2023-06-07T07:21:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![erpang](https://discourse.holoviz.org/letter_avatar_proxy/v4/letter/e/b2d939/32.png) [@erpang](https://discourse.holoviz.org/u/erpang)\
**Post date:** [June 7, 2023, 7:21am UTC](https://discourse.holoviz.org/t/can-panels-modal-not-disappear-if-i-click-outside-of-it/5499/1 "2023-06-07T07:21:17Z")

</div>

The Panel’s defaulf setting for modal is that if I click area outside of the modal, it will disappear, but this is quite undesirable feature, could anyone tell me how to disable this feature, and the only way to close a modal is via its close button. Is there such options in Panel?

---

<div class="post-metadata">

**Author:** ![Theom](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/theom/32/4685_2.png) [@Theom](https://discourse.holoviz.org/u/Theom)\
**Post date:** [June 7, 2023, 11:37am UTC](https://discourse.holoviz.org/t/can-panels-modal-not-disappear-if-i-click-outside-of-it/5499/2 "2023-06-07T11:37:36Z")

</div>

You could use the new FloatPanel widget instead. It will only close if you click on the close button.

[https://panel.holoviz.org/reference/layouts/FloatPanel.html](https://panel.holoviz.org/reference/layouts/FloatPanel.html)
