Skip to content

[Bug Report][2.5.12] v-calendar Memory Leak (type: day, day4) #14386

@oneMatti

Description

@oneMatti

Environment

Vuetify Version: 2.5.12
Vue Version: 2.6.14
Browsers: Chrome 95.0.4638.69
OS: Windows 10

Steps to reproduce

  1. Open the Reproduction link
  2. Take a Heap Snapshot with your Browsers Dev Tools (choose cdpn.io: index.html as JS VM Instance)
  3. Click a few times on the "Toggle Calendar" Button to destroy and remount the v-calendar components
  4. Take a second Heap Snapshot. You should see a lot more reserved memory and a lot of detached elements that can not be removed by the garbage collector
  5. This behavior exists only with type "day" or "day4". if you change the v-calendar type to "week" or "month" you will have no problems.

Expected Behavior

v-calendar with type "day" or "day4" can be unmounted without leaking memory

Actual Behavior

v-calendar with type "day" or "day4" leaking memory after being unmounted

Reproduction Link

https://codepen.io/onematti/pen/rNzJgyp

Metadata

Metadata

Assignees

Labels

C: VCalendarT: bugFunctionality that does not work as intended/expectedperformanceThe issue involves performance

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions