feat(xo-web/modal): autofocus strong-confirm text input (#2749)

This commit is contained in:
Rajaa.BARHTAOUI 2018-03-19 15:34:52 +01:00 committed by Pierre Donias
parent cb9fa5c42b
commit d1a046279d

View File

@ -199,7 +199,13 @@ class StrongConfirm extends Component {
<strong className='no-text-selection'>{_(messageId, values)}</strong> <strong className='no-text-selection'>{_(messageId, values)}</strong>
</div> </div>
<div> <div>
<input className='form-control' onChange={this._onInputChange} /> <input
className='form-control'
ref={ref => {
ref && ref.focus()
}}
onChange={this._onInputChange}
/>
</div> </div>
</GenericModal> </GenericModal>
) )