We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3017388 commit 5c7edc2Copy full SHA for 5c7edc2
src/TableEditColumn.js
@@ -169,7 +169,7 @@ class TableEditColumn extends Component {
169
row
170
} = this.props;
171
const { shakeEditor } = this.state;
172
- const attr = {
+ let attr = {
173
ref: 'inputRef',
174
onKeyDown: this.handleKeyPress,
175
onBlur: this.handleBlur
@@ -179,6 +179,7 @@ class TableEditColumn extends Component {
179
let { className } = this.state;
180
// put placeholder if exist
181
editable.placeholder && (attr.placeholder = editable.placeholder);
182
+ editable.attrs && (attr = {...editable.attrs, ...attr});
183
184
const editorClass = classSet({ 'animated': shakeEditor, 'shake': shakeEditor });
185
fieldValue = fieldValue === 0 ? '0' : fieldValue;
0 commit comments