mirror of
https://github.com/urbit/shrub.git
synced 2024-12-13 16:03:36 +03:00
sorting
This commit is contained in:
parent
304747498d
commit
016e1289f3
@ -27,7 +27,7 @@ module.exports = recl
|
||||
@$el = $ @getDOMNode()
|
||||
@$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
|
||||
|
||||
|
@ -649,7 +649,7 @@ module.exports = recl({
|
||||
},
|
||||
_focus: function(e, i) {
|
||||
return this.setState({
|
||||
selected: Number(i.props.index)
|
||||
selected: Number(i.props.item.sort)
|
||||
});
|
||||
},
|
||||
_dragStart: function(e, i) {
|
||||
|
Loading…
Reference in New Issue
Block a user