Skip to content

Commit 80f0e8e

Browse files
committed
Move delete button to the right
1 parent 123d100 commit 80f0e8e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/components/fields/ArrayField.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -342,13 +342,6 @@ class ArrayField extends Component {
342342
hasToolbar ?
343343
<div className="col-xs-2 array-item-remove text-right">
344344
<div className="btn-group" style={{ display: "flex" }}>
345-
{removable ?
346-
<button type="button" className="btn btn-danger"
347-
style={{ flex: 1, paddingLeft: 6, paddingRight: 6 }}
348-
tabIndex="-1"
349-
disabled={disabled || readonly}
350-
onClick={this.onDropIndexClick(index)}>✖︎</button>
351-
: null}
352345
{ canMoveUp || canMoveDown ?
353346
<button type="button" className="btn btn-default"
354347
style={{ flex: 1, paddingLeft: 6, paddingRight: 6 }}
@@ -363,6 +356,13 @@ class ArrayField extends Component {
363356
disabled={disabled || readonly || !canMoveDown}
364357
onClick={this.onReorderClick(index, index + 1)}></button>
365358
: null}
359+
{removable ?
360+
<button type="button" className="btn btn-danger"
361+
style={{ flex: 1, paddingLeft: 6, paddingRight: 6 }}
362+
tabIndex="-1"
363+
disabled={disabled || readonly}
364+
onClick={this.onDropIndexClick(index)}>✖︎</button>
365+
: null}
366366
</div>
367367
</div>
368368
: null

0 commit comments

Comments
 (0)