cozy-ui 60.8.0 → 60.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [60.8.1](https://github.com/cozy/cozy-ui/compare/v60.8.0...v60.8.1) (2022-01-26)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * PreventDefault on cozy-intent event ([f0ad95b](https://github.com/cozy/cozy-ui/commit/f0ad95b))
7
+
1
8
  # [60.8.0](https://github.com/cozy/cozy-ui/compare/v60.7.0...v60.8.0) (2022-01-25)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "60.8.0",
3
+ "version": "60.8.1",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -85,7 +85,10 @@ export class AppLinker extends React.Component {
85
85
 
86
86
  if (context) {
87
87
  return {
88
- onClick: () => context.call('openApp', href, app),
88
+ onClick: event => {
89
+ event.preventDefault()
90
+ context.call('openApp', href, app)
91
+ },
89
92
  href: '#'
90
93
  }
91
94
  }
@@ -140,8 +140,9 @@ export var AppLinker = /*#__PURE__*/function (_React$Component) {
140
140
 
141
141
  if (context) {
142
142
  return {
143
- onClick: function onClick() {
144
- return context.call('openApp', href, app);
143
+ onClick: function onClick(event) {
144
+ event.preventDefault();
145
+ context.call('openApp', href, app);
145
146
  },
146
147
  href: '#'
147
148
  };