Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

205
Views
NGX-bootstrap Datepicker fires TypeError: Cannot read properties of undefined (reading 'setHours')

Struggling with the problem in DatePicker component. Here is the simple test project: https://github.com/yardim/datepicker-test

Steps to reproduce:

  1. Enter some invalid value into DatePicker input with a keyboard, for example text: asd
  2. Remove focus from the input, input automatically will be filled with value: Invalid date
  3. Put focus into input again, and wait until datepicker appears
  4. Select Invalid date text and remove it from the input

Actual result: it fires error

ERROR TypeError: Cannot read properties of undefined (reading 'setHours')
at copyTime (ngx-bootstrap-datepicker.js:2249)
at bsDatepickerReducer (ngx-bootstrap-datepicker.js:2310)
at ngx-bootstrap-mini-ngrx.js:12
at scanInternals.js:11
at OperatorSubscriber._next (OperatorSubscriber.js:9)
at OperatorSubscriber.next (Subscriber.js:31)
at observeOn.js:6
at QueueAction.<anonymous> (executeSchedule.js:3)
at QueueAction._execute (AsyncAction.js:53)
at QueueAction.execute (QueueAction.js:20)

Does anybody know any workaround how to fix that issue and prevent error? Many thanks in advance!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!