Skip to content

Popstate event handler throws error when state is null #535

Description

@vitus-prediger
  • FACT-Finder-Web-Components Magento2-Module version (see composer.json):
    5.2.0

  • Magento edition and version:
    2.4.7-p7

  • PHP version:
    8.2

  • Steps to reproduce:
    Go to prediger.de, put any item in your cart, open the cart and proceed to first step of checkout.

  • Expected behavior:
    The popstate event listener of bundle.js is able to handle a state parameter of null which can happen according to the specification.
    Especially if you manipulate the URL programmatically, like the step-navigator in checkout does, or call history.back().

  • Actual behavior:
    Popstate event handler throws error because state parameter is null.

Image Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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