mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-30 01:05:18 +02:00
[DEV-226] fix modal behavior when pressing enter (#1139)
This commit is contained in:
parent
527843f00f
commit
d90b7d48c3
@ -65,12 +65,12 @@ class AdminPanelCustomTagsModal extends React.Component {
|
||||
<FormField name="name" label={i18n('NAME')} fieldProps={{size: 'large'}} required={nameRequired} />
|
||||
<FormField name="color" label={i18n('COLOR')} decorator={ColorSelector} />
|
||||
<div className='admin-panel-custom-tags-modal__actions'>
|
||||
<Button onClick={this.onDiscardClick.bind(this)} size="small">
|
||||
{i18n('CANCEL')}
|
||||
</Button>
|
||||
<SubmitButton type="secondary" size="small">
|
||||
{i18n('SAVE')}
|
||||
</SubmitButton>
|
||||
<Button onClick={this.onDiscardClick.bind(this)} size="small">
|
||||
{i18n('CANCEL')}
|
||||
</Button>
|
||||
</div>
|
||||
</Form>
|
||||
</div>
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
&__actions{
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
|
@ -63,8 +63,8 @@ class InviteUserWidget extends React.Component {
|
||||
<Captcha ref="captcha" />
|
||||
</div>
|
||||
<div className="invite-user-widget__buttons-container">
|
||||
<Button onClick={(e) => {e.preventDefault(); ModalContainer.closeModal();}} type="link">{i18n('CANCEL')}</Button>
|
||||
<SubmitButton type="secondary">{i18n('INVITE_USER')}</SubmitButton>
|
||||
<Button onClick={(e) => {e.preventDefault(); ModalContainer.closeModal();}} type="link">{i18n('CANCEL')}</Button>
|
||||
</div>
|
||||
</Form>
|
||||
{this.renderMessage()}
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
&__buttons-container {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-direction: row-reverse;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user