mirror of
https://github.com/urbit/shrub.git
synced 2024-12-14 01:08:54 +03:00
sorting
This commit is contained in:
parent
304747498d
commit
016e1289f3
@ -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
|
||||||
|
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user