Harvest-Dev / ng-select2

A select2 for Angular
MIT License
55 stars 32 forks source link

why update() gets activated when we open the component ? #71

Closed nouaim closed 3 months ago

nouaim commented 3 months ago

is there a solution to have it work only when the user interacts and selects an option?

Zefling commented 3 months ago

I don't have any log in the demo. With which version? Don't you have an example test?

nouaim commented 3 months ago

@Zefling i have version 14.0.1 , does it have that issue? i meant to do console.log("anything") inside the update() function, you will notice it prints the message when you open the component, and not until the user selects option.

Zefling commented 3 months ago

https://github.com/Harvest-Dev/ng-select2/issues/69#issuecomment-2247773765

Zefling commented 3 months ago

If no one asks, I don't bother tracking all versions. I often do the corrections on my own time. Sorry, the versions tracked are 15 and 13 because there are requests.

I can do a backport on version 14 if requested, if you are kind and clear on your request. I can't guess which version you are using.

nouaim commented 3 months ago

Hello @Zefling thanks a lot , I've downgraded to the version you patched (13) and it seems to work fine. I really appreciate your help, and i think no need to back-port on 14 unless another person requests it.