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.
77
88## [ Unreleased]
99
10+ ### Fix
11+
12+ - ** NumericStepper** redirecting to product page when inside a shelf, added a preventDefault.
13+
1014## [ 9.146.2] - 2022-09-02
1115
1216### Fixed
@@ -4157,4 +4161,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
41574161
41584162
41594163[ 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 {
186186
187187 handleIncreaseValue = event => {
188188 event . stopPropagation ( )
189+ event . preventDefault ( )
189190 this . changeValue ( this . state . value + 1 , event , false )
190191 }
191192
192193 handleDecreaseValue = event => {
193194 event . stopPropagation ( )
195+ event . preventDefault ( )
194196 this . changeValue ( this . state . value - 1 , event , false )
195197 }
196198
You can’t perform that action at this time.
0 commit comments