Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Don't cut off parts of the new name when renaming #10648

Merged
merged 1 commit into from
Mar 6, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/project/FileTreeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ define(function (require, exports, module) {
* The rename or create operation can be completed or canceled by actions outside of
* this component, so we keep the model up to date by sending every update via an action.
*/
handleKeyUp: function (e) {
handleInput: function (e) {
this.props.actions.setRenameValue(this.refs.name.getDOMNode().value.trim());

if (e.keyCode !== KeyEvent.DOM_VK_LEFT &&
Expand Down Expand Up @@ -194,7 +194,7 @@ define(function (require, exports, module) {
defaultValue: this.props.name,
autoFocus: true,
onKeyDown: this.handleKeyDown,
onKeyUp: this.handleKeyUp,
onInput: this.handleInput,
onClick: this.handleClick,
onBlur: this.handleBlur,
style: {
Expand Down Expand Up @@ -565,7 +565,7 @@ define(function (require, exports, module) {
defaultValue: this.props.name,
autoFocus: true,
onKeyDown: this.handleKeyDown,
onKeyUp: this.handleKeyUp,
onInput: this.handleInput,
onBlur: this.handleBlur,
style: {
width: width
Expand Down