Skip to content

Conversation

textagroup
Copy link

@textagroup textagroup commented Jun 9, 2025

Fixes #2192

Fixes issue where error is thrown calling getBoundingClientRect on null

Checks the object exists before calling getBoundingClientRect, if it does not exist cartBottomPost will be set to 0

Screenshots

image

How to test the changes in this Pull Request:

  • Load a page which has the cart icon displayed
  • View the console in inspector
  • Hover over the cart icon with the mouse
  • Error will not be displayed

Changelog

Fix – getBoundingClientRect error being thrown on cart hover #2192

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.

getBoundingClientRect error when hovering over cart icon
1 participant