This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Stop event propagation after IconButton onClick
closed-social-glitch-2
Eugen
8 years ago
committed by
GitHub
parent
4f25e3d042
commit
e906677092
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
app/assets/javascripts/components/components/icon_button.jsx
+ 1
- 0
app/assets/javascripts/components/components/icon_button.jsx
View File
@ -22,6 +22,7 @@ const IconButton = React.createClass({
handleClick
(
e
)
{
e
.
preventDefault
(
)
;
this
.
props
.
onClick
(
)
;
e
.
stopPropagation
(
)
;
}
,
render
(
)
{
Write
Preview
Loading…
Cancel
Save