@arcteryx/components-cart
Advanced tools
Comparing version 5.0.4 to 5.0.5
@@ -6,2 +6,13 @@ # Change Log | ||
## [5.0.5](http://bitbucket.org/arcteryx/arcteryx-js-helpers/compare/@arcteryx/components-cart@5.0.4...@arcteryx/components-cart@5.0.5) (2020-12-17) | ||
### Bug Fixes | ||
* **Cart:** TMS-523 Allow consumer to host in form by preventing event bubbling ([dbdd3fe](http://bitbucket.org/arcteryx/arcteryx-js-helpers/commits/dbdd3fe16b506779aaf5837d1a86c8da0e0359fe)) | ||
## [5.0.4](http://bitbucket.org/arcteryx/arcteryx-js-helpers/compare/@arcteryx/components-cart@5.0.3...@arcteryx/components-cart@5.0.4) (2020-12-17) | ||
@@ -8,0 +19,0 @@ |
@@ -353,15 +353,19 @@ 'use strict'; | ||
const decrementCount = () => { | ||
const decrementCount = event => { | ||
try { | ||
event.stopPropagation(); | ||
event.preventDefault(); | ||
handleDecrement(); | ||
} catch (err) { | ||
console.error(err); | ||
console.error('Fly-In Cart decrement count', err); | ||
} | ||
}; | ||
const incrementCount = () => { | ||
const incrementCount = event => { | ||
try { | ||
event.stopPropagation(); | ||
event.preventDefault(); | ||
handleIncrement(); | ||
} catch (err) { | ||
console.error(err); | ||
console.error('Fly-In Cart increment count', err); | ||
} | ||
@@ -368,0 +372,0 @@ }; |
@@ -345,15 +345,19 @@ import React, { useContext } from 'react'; | ||
const decrementCount = () => { | ||
const decrementCount = event => { | ||
try { | ||
event.stopPropagation(); | ||
event.preventDefault(); | ||
handleDecrement(); | ||
} catch (err) { | ||
console.error(err); | ||
console.error('Fly-In Cart decrement count', err); | ||
} | ||
}; | ||
const incrementCount = () => { | ||
const incrementCount = event => { | ||
try { | ||
event.stopPropagation(); | ||
event.preventDefault(); | ||
handleIncrement(); | ||
} catch (err) { | ||
console.error(err); | ||
console.error('Fly-In Cart increment count', err); | ||
} | ||
@@ -360,0 +364,0 @@ }; |
@@ -352,15 +352,19 @@ (function (global, factory) { | ||
const decrementCount = () => { | ||
const decrementCount = event => { | ||
try { | ||
event.stopPropagation(); | ||
event.preventDefault(); | ||
handleDecrement(); | ||
} catch (err) { | ||
console.error(err); | ||
console.error('Fly-In Cart decrement count', err); | ||
} | ||
}; | ||
const incrementCount = () => { | ||
const incrementCount = event => { | ||
try { | ||
event.stopPropagation(); | ||
event.preventDefault(); | ||
handleIncrement(); | ||
} catch (err) { | ||
console.error(err); | ||
console.error('Fly-In Cart increment count', err); | ||
} | ||
@@ -367,0 +371,0 @@ }; |
{ | ||
"name": "@arcteryx/components-cart", | ||
"version": "5.0.4", | ||
"version": "5.0.5", | ||
"description": "Arcteryx Cart", | ||
@@ -19,3 +19,3 @@ "source": "src/index.js", | ||
"license": "ISC", | ||
"gitHead": "817fa5e660b1bfccd2a3237654e73ec34ee54825", | ||
"gitHead": "5a7f5f937ffb6f711a3678e19f1cdcdb7bc09882", | ||
"peerDependencies": { | ||
@@ -22,0 +22,0 @@ "@arcteryx/components-contexts": "^1.1.0", |
@@ -61,14 +61,18 @@ import React from "react"; | ||
const decrementCount = () => { | ||
const decrementCount = event => { | ||
try { | ||
event.stopPropagation(); | ||
event.preventDefault(); | ||
handleDecrement(); | ||
} catch (err) { | ||
console.error(err); | ||
console.error('Fly-In Cart decrement count', err); | ||
} | ||
}; | ||
const incrementCount = () => { | ||
const incrementCount = event => { | ||
try { | ||
event.stopPropagation(); | ||
event.preventDefault(); | ||
handleIncrement(); | ||
} catch (err) { | ||
console.error(err); | ||
console.error('Fly-In Cart increment count', err); | ||
} | ||
@@ -75,0 +79,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
483775
5927