Skip to content

Commit

Permalink
update onDoubleClick
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreCrb authored and Your Name committed Feb 13, 2020
1 parent dd7d3e6 commit a9ad00c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hooks/useInteractive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ export const useInteractive = (
event.preventDefault()
event.stopPropagation()
dispatch.components.select(component.id)
},
onDoubleClick: (event: MouseEvent) => {
event.preventDefault()
event.stopPropagation()
dispatch.app.toggleInputText()
},
}
Expand Down

0 comments on commit a9ad00c

Please sign in to comment.