Merge pull request #1367 from processing/file-length-limit

Fixes #1311
This commit is contained in:
Cassie Tarakajian 2020-04-06 12:52:36 -04:00 committed by GitHub
commit 4b9eb8f346
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View file

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

View file

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

View file

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