mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 23:29:49 +00:00
stopPropagation
This commit is contained in:
@@ -56,9 +56,6 @@ class DirColumnNav extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps(nextProps) {
|
componentWillReceiveProps(nextProps) {
|
||||||
if (!nextProps.currentNode) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.setState({opNode: nextProps.currentNode});
|
this.setState({opNode: nextProps.currentNode});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -363,10 +363,14 @@ class FileChooser extends React.Component {
|
|||||||
this.onCloseSearching();
|
this.onCloseSearching();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onScroll = (event) => {
|
||||||
|
event.stopPropagation();
|
||||||
|
}
|
||||||
|
|
||||||
renderRepoListView = () => {
|
renderRepoListView = () => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="file-chooser-container user-select-none">
|
<div className="file-chooser-container user-select-none" onScroll={this.onScroll}>
|
||||||
{this.props.mode === 'current_repo_and_other_repos' && (
|
{this.props.mode === 'current_repo_and_other_repos' && (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<div className="list-view">
|
<div className="list-view">
|
||||||
|
Reference in New Issue
Block a user