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

203
Views
NGX-bootstrap Datepicker activa TypeError: no se pueden leer las propiedades de undefined (leyendo 'setHours')

Luchando con el problema en el componente DatePicker. Aquí está el proyecto de prueba simple: https://github.com/yardim/datepicker-test

Pasos para reproducir:

  1. Ingrese algún valor no válido en la entrada de DatePicker con un teclado, por ejemplo, texto: asd
  2. Elimine el foco de la entrada, la entrada se completará automáticamente con el valor: Invalid date
  3. Vuelva a poner el foco en la entrada y espere hasta que aparezca el selector de fecha
  4. Seleccione Texto de Invalid date y elimínelo de la entrada

Resultado real : dispara 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)

¿Alguien sabe alguna solución para solucionar ese problema y evitar errores? ¡Muchas gracias de antemano!

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!