From fb55d9cc7d8f157aabece5ca43bacede5616523c Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Tue, 6 Jun 2017 20:43:30 +0200 Subject: PLT-6757 - fix js error when press enter in the confirmation dialog (#6589) --- webapp/components/confirm_modal.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webapp/components') diff --git a/webapp/components/confirm_modal.jsx b/webapp/components/confirm_modal.jsx index 0adf06906..89656a776 100644 --- a/webapp/components/confirm_modal.jsx +++ b/webapp/components/confirm_modal.jsx @@ -35,7 +35,7 @@ export default class ConfirmModal extends React.Component { handleKeypress(e) { if (e.key === 'Enter' && this.props.show) { - this.props.onConfirm(); + this.props.onConfirm(e); } } -- cgit v1.2.3-1-g7c22