Skip to content

Commit acc22bb

Browse files
committed
chore: improve ui5-date-picker performance
1 parent 86440aa commit acc22bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/main/src/DatePickerPopoverTemplate.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export default function DatePickerPopoverTemplate(this: DatePicker, hooks?: { he
2020
const footer = hooks?.footer || defaultFooter;
2121
const initialFocus = hooks?.initialFocus;
2222

23+
if (!this.open) {
24+
return;
25+
}
26+
2327
return (
2428
<ResponsivePopover
2529
id={`${this._id}-responsive-popover`}

0 commit comments

Comments
 (0)