MDB checkbox change event fire before the control.valueChang


Topic: MDB checkbox change event fire before the control.valueChange event - Microsoft EDGE browser

I have used Reactive forms in my angular app.

For EDGE browser MDB Checkbox change event is firing before the form.control.valueChanges event.

For checkbox change I am posting form data to server and in response I am getting the calculated data, which I am binding again to form.

My problem is when, I checked the checkbox, while submitting form I am getting checkbox value as false and after that It become true after submit.

In the response I am getting false value, hence after binding response checkbox become unchecked.

Checkbox check > checkbox value: false
post data > checkbox value: false
checkbox update value > checkbox value: true
got the response > checkbox value: true (at the time of post data it is false, so getting response value as false)
bind response to form > checkbox value: false

It is working fine for chrome and firefox browsers.


Damian Gemza staff answered 6 years ago

Dear itsupport,

This problem will be resolved with the next release of MDB Angular.

Best Regards,

Damian


Damian Gemza staff answered 6 years ago

Dear itsupport@arrkgroup.com,

Thanks for your report.

That's strange. We have to investigate this problem.

Unfortunately, for now, I'm not able to provide you with some workaround.

Best Regards,

Damian


Thank you for reply. Please provide solution as soon as possible.


Damian Gemza staff answered 6 years ago

We'll let you know when we'll debug this problem. I'm not able to provide you with some ETA on this thing, because there are some other things to do in our tasks list.

About workaround: That's silly, but maybe try to wrap (change) event code with some setTimeout 0? This should move execution of this code to the end of the queue.

Best Regards,

Damian


Have you checked it ?


Damian Gemza staff answered 6 years ago

Dear itsupport,

Please note, that we've got other tasks to do.

We're solving the problems with the specific order, so no, I didn't check this problem.

We'll let you know when we'll be ready to say something more about this problem.

Best Regards, Damian


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 7.0.0
  • Device: IOS
  • Browser: Microsoft EDGE
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No
Tags