Skip to content

Commit f562972

Browse files
committed
fix(calendar): don't close sheet calendar on picker popover click
1 parent b6c4691 commit f562972

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/components/calendar/calendar-class.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ class Calendar extends Framework7Class {
105105
if (calendar.isPopover()) return;
106106
if (!calendar.opened || calendar.closing) return;
107107
if ($targetEl.closest('[class*="backdrop"]').length) return;
108+
if (calendar.monthPickerPopover || calendar.yearPickerPopover || calendar.timePickerPopover)
109+
return;
108110
if ($inputEl && $inputEl.length > 0) {
109111
if (
110112
$targetEl[0] !== $inputEl[0] &&

0 commit comments

Comments
 (0)