diff options
author | Carlos Tadeu Panato Junior <ctadeu@gmail.com> | 2017-05-15 18:38:23 +0200 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2017-05-15 12:38:23 -0400 |
commit | d07e4068b4797d6688882e289157ad83ce05c7bf (patch) | |
tree | b91fff5b67ac3dfb94478db8d25882fec74dd32c /webapp/components/emoji | |
parent | a5d2d6503d86240d032fa07d49d500fd0b72640a (diff) | |
download | chat-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.jsx | 4 |
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); } |