navingator / northwind-web-test

Uses Northwind database for web development testing
MIT License
1 stars 1 forks source link

Category search in product edit component does 2 http searches each key-up #23

Closed mknoedel closed 7 years ago

mknoedel commented 7 years ago

When a user enters data into the product edit form in the category field. An HTTP request is sent out to retrieve a list of categories.

This request is being sent out twice on every key-up command. We need to make sure it is only being sent out once.

mknoedel commented 7 years ago

This is an Angular 2 bug caused by productForm.valueChanges looking at two events at the same time on Chrome.

Here is the open issue on GitHub: https://github.com/angular/angular/issues/12540

Last activity was 2/26/2017 so hopefully this gets fixed on it's own.

POTENTIAL FIX: We could use our own event emitters. My thought is that this is not worth our time and we will likely be using a different search method in the future anyway.

mknoedel commented 7 years ago

Closing for now