Skip to content

Commit 30aa13b

Browse files
jyash97SaraVieira
authored andcommitted
Fix: trim space (codesandbox#2232)
1 parent 73074fb commit 30aa13b

File tree

1 file changed

+1
-1
lines changed
  • packages/app/src/app/pages/Sandbox/Editor/Workspace/Files/DirectoryEntry/Entry/EntryTitleInput

1 file changed

+1
-1
lines changed

packages/app/src/app/pages/Sandbox/Editor/Workspace/Files/DirectoryEntry/Entry/EntryTitleInput/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default class EntryTitleInput extends React.PureComponent {
2626

2727
handleKeyUp = (e: KeyboardEvent) => {
2828
if (e.keyCode === ENTER) {
29-
this.props.onCommit(this.state.currentValue);
29+
this.props.onCommit(this.state.currentValue.trim());
3030
} else if (e.keyCode === ESC) {
3131
this.props.onCancel();
3232
}

0 commit comments

Comments
 (0)