This commit is contained in:
Cassie Tarakajian 2020-04-06 12:46:17 -04:00
parent c19ae217ef
commit e1a3bf2583
3 changed files with 3 additions and 0 deletions

View file

@ -160,6 +160,7 @@ export class FileNode extends React.Component {
type="text"
className="sidebar__file-item-input"
value={this.props.name}
maxLength="128"
onChange={this.handleFileNameChange}
ref={(element) => { this.fileNameInput = element; }}
onBlur={() => {

View file

@ -29,6 +29,7 @@ class NewFileForm extends React.Component {
id="name"
type="text"
placeholder="Name"
maxLength="128"
{...domOnlyProps(name)}
ref={(element) => { this.fileName = element; }}
/>

View file

@ -29,6 +29,7 @@ class NewFolderForm extends React.Component {
className="new-folder-form__name-input"
id="name"
type="text"
maxLength="128"
placeholder="Name"
ref={(element) => { this.fileName = element; }}
{...domOnlyProps(name)}