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

This commit is contained in:
Robert Pintilii 2022-07-29 11:30:57 +03:00 committed by GitHub
parent 6f4b858e35
commit dbc29a08ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -317,6 +317,7 @@ class StatelessDialog extends Component<Props> {
return ( return (
<Button <Button
id = { CANCEL_BUTTON_ID } id = { CANCEL_BUTTON_ID }
key = { CANCEL_BUTTON_ID }
label = { t(this.props.cancelKey || 'dialog.Cancel') } label = { t(this.props.cancelKey || 'dialog.Cancel') }
onClick = { onDecline || this._onCancel } onClick = { onDecline || this._onCancel }
size = 'small' size = 'small'
@ -343,6 +344,7 @@ class StatelessDialog extends Component<Props> {
<Button <Button
disabled = { this.props.okDisabled } disabled = { this.props.okDisabled }
id = { OK_BUTTON_ID } id = { OK_BUTTON_ID }
key = { OK_BUTTON_ID }
label = { t(this.props.okKey || 'dialog.Ok') } label = { t(this.props.okKey || 'dialog.Ok') }
onClick = { this._onSubmit } onClick = { this._onSubmit }
size = 'small' /> size = 'small' />