We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44d87c3 commit 0bb8295Copy full SHA for 0bb8295
src/option/ProductOption.js
@@ -30,7 +30,7 @@ export default function ProductOption(props) {
30
31
const handleClick = withDefaultHandler(onClick, _e => {
32
if (onSelectedOptionChange) {
33
- onSelectedOptionChange(value === selectedOption ? null : value)
+ onSelectedOptionChange(selected ? null : value)
34
}
35
})
36
0 commit comments