Skip to content

Commit

Permalink
fix(date-picker): fix memory leak when component is destroyed before …
Browse files Browse the repository at this point in the history
…menu is closed
  • Loading branch information
adrianschmidt authored and jgroth committed Feb 21, 2025
1 parent 1f25461 commit fb4b92b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/date-picker/date-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ export class DatePicker {
this.updateInternalFormatAndType();
}

public disconnectedCallback() {
this.hideCalendar();
}

public render() {
const inputProps: any = {
onAction: this.clearValue,
Expand Down

0 comments on commit fb4b92b

Please sign in to comment.