Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar manual input doesn't work with time #526

Closed
pedrogorrin opened this issue Aug 4, 2018 · 0 comments
Closed

Calendar manual input doesn't work with time #526

pedrogorrin opened this issue Aug 4, 2018 · 0 comments
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@pedrogorrin
Copy link

I'm submitting a

[X] bug report

Plunkr Case (Bug Reports)
https://plnkr.co/edit/uxaM0ULfHI9ZhU5jnIJY?p=preview

Current behavior

When trying to manually add date and time on the calendar input configured as a date and time input the page goes blank and a error shows up in the browser console: Uncaught TypeError: currentTime.getHours is not a function
Expected behavior

The calendar should accept a manually entered date and time

Minimal reproduction of the problem with instructions

  1. Add a Calendar component to the app and the props showTime as true
  2. manually enter some data on the input of the calendar and see how page goes blank and an error is throw on the console Uncaught TypeError: currentTime.getHours is not a function

Please tell us about your environment:

OS: MacOs Sierra
IDE: PHPStorm
Package Manager: yarn

  • React version:

React 16

  • PrimeReact version:

Primereact 2.0.0-beta.1

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Browser: Google Chorme Version 68.0.3440.84 (Official Build) (64-bit)

  • Language: [all | TypeScript X.X | ES6/7 | ES5]
    ES6
@cagataycivici cagataycivici self-assigned this Aug 22, 2018
@cagataycivici cagataycivici added the Type: Bug Issue contains a defect related to a specific component. label Aug 22, 2018
@cagataycivici cagataycivici added this to the 2.0.0-beta.2 milestone Aug 22, 2018
@cagataycivici cagataycivici changed the title Calendar Manual input doesn't work Calendar manual input doesn't work with time Aug 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants