angular-material-extensions / select-country

Angular Material component that allow users to select a country or nationality with an autocomplete feature
https://angular-material-extensions.github.io/select-country/
MIT License
126 stars 40 forks source link

Very slow #89

Open MarcoFFSiciliano opened 2 years ago

MarcoFFSiciliano commented 2 years ago

Bug Report or Feature Request (mark with an x)

- [ X] bug report -> please search issues before submitting
- [ ] feature request

OS and Version?

MacOS Monterey + Windows 10 and 64 Pro

Versions

6.0.1 and 5.1.0

Repro steps

I installed it with npm like described in the documentation.

If i click on the dropdown it takes about 1,4-2 seconds until the dropdown opens...

I am using angular 12.

imdevdaniel commented 2 years ago

Can confirm. I'm using version 6 on MacOS 11.6.2 and it takes a while to load. Adding a value to itemsLoadSize fixes the problem for me.

andi0b commented 2 years ago

The component also takes very long to initially render, i constantly get warnings like this in my console:

[Violation] 'setTimeout' handler took 103ms zone.js

It is faster though in production mode.