feat(xo-web/modal): autofocus strong-confirm text input (#2749)
This commit is contained in:
parent
cb9fa5c42b
commit
d1a046279d
@ -199,7 +199,13 @@ class StrongConfirm extends Component {
|
||||
<strong className='no-text-selection'>{_(messageId, values)}</strong>
|
||||
</div>
|
||||
<div>
|
||||
<input className='form-control' onChange={this._onInputChange} />
|
||||
<input
|
||||
className='form-control'
|
||||
ref={ref => {
|
||||
ref && ref.focus()
|
||||
}}
|
||||
onChange={this._onInputChange}
|
||||
/>
|
||||
</div>
|
||||
</GenericModal>
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user