Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(dialog) Add key to buttons (#11925)

Robert Pintiliidbc29a08ee3a
diff --git a/react/features/base/dialog/components/web/StatelessDialog.js b/react/features/base/dialog/components/web/StatelessDialog.js
index 6665e889f0..7c4c75c07e 100644
--- a/react/features/base/dialog/components/web/StatelessDialog.js
+++ b/react/features/base/dialog/components/web/StatelessDialog.js
@@ -317,6 +317,7 @@ class StatelessDialog extends Component<Props> {
return (
<Button
id = { CANCEL_BUTTON_ID }
+ key = { CANCEL_BUTTON_ID }
label = { t(this.props.cancelKey || 'dialog.Cancel') }
onClick = { onDecline || this._onCancel }
size = 'small'
@@ -343,6 +344,7 @@ class StatelessDialog extends Component<Props> {
<Button
disabled = { this.props.okDisabled }
id = { OK_BUTTON_ID }
+ key = { OK_BUTTON_ID }
label = { t(this.props.okKey || 'dialog.Ok') }
onClick = { this._onSubmit }
size = 'small' />