This commit is contained in:
Galen Wolfe-Pauly 2015-08-24 13:29:48 -07:00
parent 304747498d
commit 016e1289f3
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ module.exports = recl
@$el = $ @getDOMNode() @$el = $ @getDOMNode()
@$items = @$el.find('.items').children() @$items = @$el.find('.items').children()
_focus: (e,i) -> @setState {selected:Number(i.props.index)} _focus: (e,i) -> @setState {selected:Number(i.props.item.sort)}
_dragStart: (e,i) -> @dragged = i.dragged _dragStart: (e,i) -> @dragged = i.dragged

View File

@ -649,7 +649,7 @@ module.exports = recl({
}, },
_focus: function(e, i) { _focus: function(e, i) {
return this.setState({ return this.setState({
selected: Number(i.props.index) selected: Number(i.props.item.sort)
}); });
}, },
_dragStart: function(e, i) { _dragStart: function(e, i) {