@@ -108,6 +108,7 @@ class ArrayField extends Component {
108
108
onReorderClick = ( index , newIndex ) => {
109
109
return ( event ) => {
110
110
event . preventDefault ( ) ;
111
+ event . target . blur ( ) ;
111
112
const { items} = this . state ;
112
113
this . asyncSetState ( {
113
114
items : items . map ( ( item , i ) => {
@@ -330,6 +331,7 @@ class ArrayField extends Component {
330
331
const { SchemaField} = this . props . registry . fields ;
331
332
const { disabled, readonly} = this . props ;
332
333
const hasToolbar = removable || canMoveUp || canMoveDown ;
334
+ const btnStyle = { flex : 1 , paddingLeft : 6 , paddingRight : 6 , fontWeight : "bold" } ;
333
335
334
336
return (
335
337
< div key = { index } className = "array-item" >
@@ -352,24 +354,24 @@ class ArrayField extends Component {
352
354
< div className = "btn-group" style = { { display : "flex" } } >
353
355
{ canMoveUp || canMoveDown ?
354
356
< button type = "button" className = "btn btn-default array-item-move-up"
355
- style = { { flex : 1 , paddingLeft : 6 , paddingRight : 6 } }
357
+ style = { btnStyle }
356
358
tabIndex = "-1"
357
359
disabled = { disabled || readonly || ! canMoveUp }
358
360
onClick = { this . onReorderClick ( index , index - 1 ) } > ⬆</ button >
359
361
: null }
360
362
{ canMoveUp || canMoveDown ?
361
363
< button type = "button" className = "btn btn-default array-item-move-down"
362
- style = { { flex : 1 , paddingLeft : 6 , paddingRight : 6 } }
364
+ style = { btnStyle }
363
365
tabIndex = "-1"
364
366
disabled = { disabled || readonly || ! canMoveDown }
365
367
onClick = { this . onReorderClick ( index , index + 1 ) } > ⬇</ button >
366
368
: null }
367
369
{ removable ?
368
370
< button type = "button" className = "btn btn-danger array-item-remove"
369
- style = { { flex : 1 , paddingLeft : 6 , paddingRight : 6 } }
371
+ style = { btnStyle }
370
372
tabIndex = "-1"
371
373
disabled = { disabled || readonly }
372
- onClick = { this . onDropIndexClick ( index ) } > ✖︎ </ button >
374
+ onClick = { this . onDropIndexClick ( index ) } > ✖</ button >
373
375
: null }
374
376
</ div >
375
377
</ div >
0 commit comments