Skip to content

Commit

Permalink
fix: #date-picker manual input issue on no next input field available
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed May 21, 2019
1 parent 5dd5978 commit 609bde9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,11 @@ export default class DatePickerInput extends PureComponent {
(firstSelectionStart === size && keyCode === 'right'))
) {
try {
// stop in case there is no next input element
if (!this.refList[index + 1].current) {
return
}
const nextSibling = this.refList[index + 1].current.inputElement
// const nextSibling = this.refList[index + 1].current
if (nextSibling) {
nextSibling.focus()
nextSibling.setSelectionRange(0, 0)
Expand Down

0 comments on commit 609bde9

Please sign in to comment.