Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mdl-layout screen resize memory leak #5431

Open
wants to merge 41 commits into
base: mdl-1.x
Choose a base branch
from

Conversation

jakelauritsen
Copy link

No description provided.

ribrdb and others added 9 commits July 2, 2024 21:22
 - Remove event handlers from `window` when the tooltip is not showing.
- Get rid of component deconstruction remnants.

`downgradeElements` was updated in dec 2015 to not actually do any downgrading, because at the time none of the components needed deconstruction. A memory leak was then added to the Tooltip component in May 2016.

These changes to `downgradeElements` were problematic:
 - It still removes the `data-upgraded` attributes from dom elements, even though no deconstruction actually happened. This means that calling `upgradElement` again will double-upgrade the element.
 - the `createComponents_` array no longer serves any purpose.
Fix Radio focus bug.
…placeholder

Fix undefined textfield placeholder
Copy link

google-cla bot commented Jul 17, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@jakelauritsen jakelauritsen force-pushed the jakelauritsen/fix-mdl-layout-screen-resize-mem-leak branch from 1d2d166 to fde3ac6 Compare July 19, 2024 17:39
@jakelauritsen jakelauritsen force-pushed the jakelauritsen/fix-mdl-layout-screen-resize-mem-leak branch from 7f5f53f to 03133a7 Compare July 22, 2024 16:28
@jakelauritsen jakelauritsen force-pushed the jakelauritsen/fix-mdl-layout-screen-resize-mem-leak branch from 03133a7 to c63e700 Compare July 22, 2024 17:47
@jakelauritsen jakelauritsen force-pushed the jakelauritsen/fix-mdl-layout-screen-resize-mem-leak branch from 30409eb to cbb40d5 Compare July 22, 2024 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants