mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-22 11:57:34 +00:00
Wiki mode improve (#2539)
This commit is contained in:
@@ -42,10 +42,11 @@ class CreateForder extends React.Component {
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
if (this.props.parentPath === '/') {
|
||||
this.setState({parentPath: this.props.parentPath});
|
||||
let parentPath = this.props.parentPath;
|
||||
if (parentPath[parentPath.length - 1] === '/') { // mainPanel
|
||||
this.setState({parentPath: parentPath});
|
||||
} else {
|
||||
this.setState({parentPath: this.props.parentPath + '/'});
|
||||
this.setState({parentPath: parentPath + '/'}); // sidePanel
|
||||
}
|
||||
this.newInput.focus();
|
||||
this.newInput.setSelectionRange(0,0);
|
||||
|
Reference in New Issue
Block a user