igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

IgxDatePicker does not reset its state upon resetForm

Open ymita opened this issue 5 years ago • 6 comments

Description

IgxDatePicker does not reset its state upon resetForm. Is there any configuration missing in the implementation?

  • igniteui-angular version: 11.1.10
  • browser: n/a

Steps to reproduce

  1. Run the sample (https://stackblitz.com/edit/github-yrdu1t-uv6ki9?file=src%2Fapp%2Fscheduling%2Fdatepicker%2Fdatepicker-sample-6%2Fdatepicker-sample-6.component.html)
  2. Input date on IgxDatePicker
  3. Enter any string on IgxInput
  4. Manually clear values on IgxDatePicker and IgxInput
  5. Click "RESET FORM" button

Result

IgxDatePicker remain its required error.

Expected result

Required error on IgxDatePicker is cleared.

Note

If we skip the step 4, the error state of the IgxDatePicker is cleared.

Attachment

IgxDatePicker_behavior

ymita avatar May 13 '21 07:05 ymita

@Lipata, @jackofdiamond5 Is there a workaround for this issue?

ymita avatar May 17 '21 04:05 ymita

@ymita This is a bug that reproduces in 12.0 as well, so we will fix it in all supported versions.

jackofdiamond5 avatar May 18 '21 14:05 jackofdiamond5

@jackofdiamond5 Thank you for the update. We have a customer who will stay in 11.1.x. For this customer, is there a workaround that we can provide?

ymita avatar May 19 '21 01:05 ymita

@Lipata , @jackofdiamond5 Is there a workaround for this issue? If there is no feasible workaround, would you kindly let me know?

ymita avatar May 25 '21 05:05 ymita

Hi, @ymita.

There is already a PR resolving that issue - we need to approve and verify it. There are going to have PRs also for 11.1.x and 10.2.x and we will work on finalizing them. Will it be possible to apply a patch because there isn't a proper workaround?

Lipata avatar May 25 '21 19:05 Lipata

Hi @Lipata,

I am contacting to the customer if she can use 11.1.x that includes the fix. If I need further assistance with this, I will consult you!

ymita avatar May 27 '21 00:05 ymita