Skip to content

Commit e824c64

Browse files
committed
fix: calendar closing when using inside datatable settings-panel
1 parent c25668f commit e824c64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

basxbread/layout/components/datatable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def with_toolbar(
307307
),
308308
_class="settingscontainer",
309309
style="position: absolute; z-index: 999; right: 0; display: none; max-width: 80%",
310-
onload="document.addEventListener('click', (e) => {this.style.display = 'none'})",
310+
onload="document.addEventListener('click', (e) => {if(e.target.closest('.flatpickr-calendar') === null){this.style.display = 'none'}})",
311311
),
312312
style="position: relative",
313313
onclick="event.stopPropagation()",

0 commit comments

Comments
 (0)