Skip to content

Commit 9e808a5

Browse files
committed
Remove ref.name fallback from itemRef after dependencies update
1 parent 42e41c9 commit 9e808a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DateTimeInput.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export default class DateTimeInput extends PureComponent {
200200
required: required || isWidgetOpen,
201201
itemRef: (ref, name) => {
202202
// Save a reference to each input field
203-
this[`${name || ref.name}Input`] = ref;
203+
this[`${name}Input`] = ref;
204204
},
205205
};
206206
}

0 commit comments

Comments
 (0)