File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
react/components/NumericStepper Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
8
8
## [ Unreleased]
9
9
10
+ ### Fix
11
+
12
+ - ** NumericStepper** redirecting to product page when inside a shelf, added a preventDefault.
13
+
10
14
## [ 9.146.2] - 2022-09-02
11
15
12
16
### Fixed
@@ -4157,4 +4161,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
4157
4161
4158
4162
4159
4163
[ Unreleased ] : https://github.com/vtex/styleguide/compare/v9.146.1...HEAD
4160
- [ 9.146.1 ] : https://github.com/vtex/styleguide/compare/v9.146.0...v9.146.1
4164
+ [ 9.146.1 ] : https://github.com/vtex/styleguide/compare/v9.146.0...v9.146.1
Original file line number Diff line number Diff line change @@ -186,11 +186,13 @@ class NumericStepper extends Component {
186
186
187
187
handleIncreaseValue = event => {
188
188
event . stopPropagation ( )
189
+ event . preventDefault ( )
189
190
this . changeValue ( this . state . value + 1 , event , false )
190
191
}
191
192
192
193
handleDecreaseValue = event => {
193
194
event . stopPropagation ( )
195
+ event . preventDefault ( )
194
196
this . changeValue ( this . state . value - 1 , event , false )
195
197
}
196
198
You can’t perform that action at this time.
0 commit comments