fix(dialog) Add key to buttons (#11925)
This commit is contained in:
parent
6f4b858e35
commit
dbc29a08ee
|
@ -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' />
|
||||||
|
|
Loading…
Reference in New Issue