summaryrefslogtreecommitdiffstats
path: root/webapp/components/emoji
diff options
context:
space:
mode:
authorCarlos Tadeu Panato Junior <ctadeu@gmail.com>2017-05-15 18:38:23 +0200
committerHarrison Healey <harrisonmhealey@gmail.com>2017-05-15 12:38:23 -0400
commitd07e4068b4797d6688882e289157ad83ce05c7bf (patch)
treeb91fff5b67ac3dfb94478db8d25882fec74dd32c /webapp/components/emoji
parenta5d2d6503d86240d032fa07d49d500fd0b72640a (diff)
downloadchat-d07e4068b4797d6688882e289157ad83ce05c7bf.tar.gz
chat-d07e4068b4797d6688882e289157ad83ce05c7bf.tar.bz2
chat-d07e4068b4797d6688882e289157ad83ce05c7bf.zip
Implement Jira Ticket PLT-6555 - Enter should confirm deletion on delete modals (#6375)
Diffstat (limited to 'webapp/components/emoji')
-rw-r--r--webapp/components/emoji/components/emoji_list_item.jsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/webapp/components/emoji/components/emoji_list_item.jsx b/webapp/components/emoji/components/emoji_list_item.jsx
index f169b2e9c..e8eaec7a0 100644
--- a/webapp/components/emoji/components/emoji_list_item.jsx
+++ b/webapp/components/emoji/components/emoji_list_item.jsx
@@ -26,9 +26,7 @@ export default class EmojiListItem extends React.Component {
this.handleDelete = this.handleDelete.bind(this);
}
- handleDelete(e) {
- e.preventDefault();
-
+ handleDelete() {
this.props.onDelete(this.props.emoji);
}