Replies: 4 comments 3 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
-
I'm not even sure why they are filtering the one valued options. It's very undesirable for my use case too. I ended up writing a work around but I wish it wasn't forced in the first place. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think it's simple to change, but I can't run the project locally to propose the change. // Only show options with more than one value
const filteredOptions = hideSingleOptionValues ? options.filter(option =>
option.values.length > 1
) : options;
return (
filteredOptions
.map((option) => { |
Beta Was this translation helpful? Give feedback.
0 replies
-
@michenly What do you think? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the new variant selector component, options with only one value are filtered out (here).
For our store, this is undesirable behaviour as the attribute needs to be displayed (the user needs to know what size the item is, even if there's only one size).
So my feedback/suggestion is that filtering out single-option variants could perhaps be made optional (or even just left to the developer to filter themselves), making the component more flexible.
Or if not, I think this behaviour should be documented as it took me a while to realise what was happening
Beta Was this translation helpful? Give feedback.
All reactions