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"
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)}