1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 07:01:12 +00:00

stopPropagation

This commit is contained in:
zxj96
2019-06-03 14:13:10 +08:00
parent bd359c48f4
commit 47827df808
2 changed files with 5 additions and 4 deletions

View File

@@ -56,9 +56,6 @@ class DirColumnNav extends React.Component {
}
componentWillReceiveProps(nextProps) {
if (!nextProps.currentNode) {
return;
}
this.setState({opNode: nextProps.currentNode});
}

View File

@@ -363,10 +363,14 @@ class FileChooser extends React.Component {
this.onCloseSearching();
}
onScroll = (event) => {
event.stopPropagation();
}
renderRepoListView = () => {
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' && (
<Fragment>
<div className="list-view">