mirror of
https://github.com/opensupports/opensupports.git
synced 2025-04-08 18:35:06 +02:00
Ivan - Fix drag and drop os-172 multiple topics [skip ci]
This commit is contained in:
parent
e0d1fd0e40
commit
04f1d12e7d
@ -139,12 +139,12 @@ class TopicViewer extends React.Component {
|
||||
|
||||
if(this.props.editable) {
|
||||
_.extend(props, {
|
||||
onDragOver: this.onItemDragOver.bind(this, article, index),
|
||||
onDrop: this.onItemDrop.bind(this, article, index),
|
||||
onDragOver: (this.state.currentDraggedId) ? this.onItemDragOver.bind(this, article, index) : null,
|
||||
onDrop: (this.state.currentDraggedId) ? this.onItemDrop.bind(this, article, index) : null,
|
||||
onDragStart: () => this.setState({currentDraggedId: article.id}),
|
||||
onDragEnd: () => {
|
||||
if(this.state.currentDraggedId) {
|
||||
this.setState({articles: this.props.articles});
|
||||
this.setState({articles: this.props.articles, currentDraggedId: 0});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user