Skip to content
This repository has been archived by the owner on Jul 11, 2018. It is now read-only.

Date on 1901 when input field is clear #23

Open
oryam opened this issue Mar 7, 2017 · 2 comments
Open

Date on 1901 when input field is clear #23

oryam opened this issue Mar 7, 2017 · 2 comments

Comments

@oryam
Copy link

oryam commented Mar 7, 2017

Steps to reproduce and a minimal demo

  • What steps should we try in your demo to see the problem?
    Use ng2-ui/ng2-datetime-picker.

  • Plunker example(required)
    Reproductible with your online demo : https://rawgit.com/ng2-ui/ng2-ui/master/app/index.html

  • If you cannot reproduce an issue with a plunker example, it may be your environmental issue
    Reproductible with your online demo.

Current behavior

  • Use ng2-ui/ng2-datetime-picker.
  • Click on the input, so the calendar is shown.
  • Select a date, so the input field is filled up.
  • Remove the value in the input text with backspace keyboard (delete. Not with select all text and delete).
  • Then focus out the input and focus in the input, the calendar is shown on the date 30 Nov 1901.

Expected/desired behavior

  • When removing the value from input field with keyboard, then opening the calendar, the calendar could show the date of Today or the Default value date if provided.

Other information

@oryam
Copy link
Author

oryam commented Mar 10, 2017

Hello, why is it closed? The bug is reproductible as describe, in your online demo : https://rawgit.com/ng2-ui/ng2-ui/master/app/index.html

Use keyboard backspace to delete, do not select the text.

FF 52.0 (64-bit)
Chrome 48.0.2564.116 m (64-bit) ... quite old... Corporate browser, unfortunately.
IE 11.0.9600.18537

@allenhwkim
Copy link
Contributor

This is not closed. The issue at ng2-ui/ng2-datetime-picker is closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants