Skip to content

Commit 347c274

Browse files
committed
Input size cannot be 0
(cherry picked from commit 240c0b8)
1 parent e68a055 commit 347c274

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/internal-packages/crud/lib/component/editable-value.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class EditableValue extends React.Component {
4141
<input
4242
ref={(c) => this._node = c}
4343
type='text'
44-
size={this.element.currentValue ? this.element.currentValue.length : 5}
44+
size={this.element.currentValue ? (this.element.currentValue.length + 1) : 5}
4545
className={this.style()}
4646
onBlur={this.handleBlur.bind(this)}
4747
onFocus={this.handleFocus.bind(this)}

0 commit comments

Comments
 (0)