Skip to content

getBoundingClientRect error when hovering over cart icon #2192

Open
@textagroup

Description

@textagroup

Describe the bug

When hovering over the cart icon a JavaScript error is produced because getBoundingClientRect is being called on null

Isolating the problem (mark completed items with an [x]):

  • I have deactivated other plugins and themes and confirmed this bug occurs when only WooCommerce + Storefront theme are active.
  • I can reproduce this bug consistently using the steps below.

To Reproduce

Steps to reproduce the behavior:

  1. Load a page which has the cart icon displayed
  2. View the console in inspector
  3. Hover over the cart icon with the mouse
  4. Error will be displayed

Screenshots

Image

Expected behavior

Hovering over the cart icon should not display an error

Browser Environment

Please provide as much detail as possible about your testing environment.

Chrome 137.0.7151.68 on Ubuntu 24.04.2

WordPress Environment

WordPress 6.8.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions