Skip to content

Magento 2.3.4 swatch-renderer.js assumes all attributes are swatches #26517

Description

@theloveofcode

Preconditions (*)

  1. Magento 2.3.4

Steps to reproduce (*)

  1. Create a Configurable product with at least one swatch type attribute, and one non-swatch type attribute as the product's super attributes.
  2. Go to the new Configurable product's page on the front-end.
  3. Configure the product by clicking attribute options until you click on an option from a non-swatch attribute.
  4. Note the JS error: "Uncaught TypeError: Cannot read property 'additional_data' of undefined"

Expected result (*)

  1. No JS error is thrown when clicking on options for non-swatch attributes

Actual result (*)

  1. A JS error is thrown.

This appears to have been caused by the new line 729 in Magento 2.3.4 It should not assume that all attributes it encounters are swatch-type attributes.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions