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

class ng-touched not set if using AltInput #81

Open
david-dasilva opened this issue Feb 13, 2020 · 0 comments
Open

class ng-touched not set if using AltInput #81

david-dasilva opened this issue Feb 13, 2020 · 0 comments
Assignees

Comments

@david-dasilva
Copy link

Describe the bug
Hi,

I found an issue where some Angular's classes for form are not set up correctly on some cases :
If using AltInput, the ng-touched is not set on the datepicker when clicking, and even selecting a date.

Expected behavior
When I click on the datepicker, the css class ng-touched is set on the element, and the class ng-untouched should disapear.

Reproduction
Here is a Stackblitz to showcase it : https://stackblitz.com/edit/ng2-flatpickr-issue-starter-duia6u
and a github : https://github.com/david-dasilva/ng-flatpicker-issue

Clicking on the first datepicker and closing it does not remove the ng-untouched class and does not set the ng-touched class.

On the second datepicker, it works as intended.

Desktop (please complete the following information):

  • OS: Ubuntu 18.04
  • Browser Firefox 72 / Chromium 79
@mezoistvan mezoistvan self-assigned this Feb 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants