You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go to https://www.dacris.net/ on home page and try to select a value from the drop down (in a shelf)
See error in browser
Expected behavior
The error shouldn't happen and the value should change on click
Screenshots
See above
Desktop (please complete the following information):
OS: Ubuntu 20.04.3 LTS
Browser Firefox
Version 91.0.2 (64-bit) Mozilla For Ubuntu (but tried it on Windows as well with a different version)
Additional context
Tried on several other production sites done on VTEX, same issue. Tried to find a solution but couldn't -> it only happens in Firefox AFAIK. Also it only happens with this block, not sku-selector, that one with the select option works fine.
I also tried installing an older version of store-components, no luck.
The text was updated successfully, but these errors were encountered:
Describe the bug
product-summary-sku-selector is the problem, to be more precise
` const handleClick = (_: React.MouseEvent, value: string) => {
const reducedOptions = displayOptions.reduce<Record<string, DisplayOption>>(
(acc, cur) => {
acc[cur.label] = cur
}`
The value is empty string when selected from Firefox which results in an error
Uncaught TypeError: reducedOptions[value] is undefined handleClick SelectVariationMode.tsx:63
You won't see it like this in production, but here you go from a workspace where I linked to last store-components version
https://skuselector--dacris.myvtex.com/
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The error shouldn't happen and the value should change on click
Screenshots
See above
Desktop (please complete the following information):
Additional context
Tried on several other production sites done on VTEX, same issue. Tried to find a solution but couldn't -> it only happens in Firefox AFAIK. Also it only happens with this block, not sku-selector, that one with the select option works fine.
I also tried installing an older version of store-components, no luck.
The text was updated successfully, but these errors were encountered: