Skip to content

Commit

Permalink
fix: PreventDefault on cozy-intent event
Browse files Browse the repository at this point in the history
  • Loading branch information
acezard committed Jan 26, 2022
1 parent e8a3e48 commit f0ad95b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion react/AppLinker/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ export class AppLinker extends React.Component {

if (context) {
return {
onClick: () => context.call('openApp', href, app),
onClick: event => {
event.preventDefault()
context.call('openApp', href, app)
},
href: '#'
}
}
Expand Down

0 comments on commit f0ad95b

Please sign in to comment.