function () {
            var fullname = this.props.name;

            var node = this.refs.name;
            node.setSelectionRange(0, fullname.length);
            node.focus(); // set focus on the rename input
            ViewUtils.scrollElementIntoView($("#project-files-container"), $(node), true);
        }
function () {
            var fullname = this.props.name;

            var node = this.refs.name;
            node.setSelectionRange(0, fullname.length);
            node.focus(); // set focus on the rename input
            ViewUtils.scrollElementIntoView($("#project-files-container"), $(node), true);
        }
function ( ) { var fullname = this . props . name ; var node = this . refs . name ; node . setSelectionRange ( 0 , fullname . length ) ; node . focus ( ) ; // set focus on the rename input ViewUtils . scrollElementIntoView ( $ ( "#project-files-container" ) , $ ( node ) , true ) ; }
When this component is displayed, we scroll it into view and select the folder name.
When this component is displayed we scroll it into view and select the folder name .
renames the file