sagalbot / vue-select

Everything you wish the HTML <select> element could do, wrapped up into a lightweight, extensible Vue component.
https://vue-select.org
MIT License
4.62k stars 1.33k forks source link

infinite scroll #1784

Open xkiller838 opened 11 months ago

xkiller838 commented 11 months ago

the infinite scroll does not work in the version of vue 3

howard-tzw commented 11 months ago

@xkiller838 Hi, try npm install vue3-select. If it doesn't work, create an issue for me here. If I have some free time, I'll be able to handle it

xkiller838 commented 11 months ago

I already tried to install again and use the infinite scroll using vue script setup in vue 3 and it doesn't work for me, it loads the 6 thousand complete values ​​and I looked at the implementation and examples in detail and nothing works neither in option nor in script setup

howard-tzw commented 11 months ago

@xkiller838 I followed the code in the document and tried it out. It feels like there are no issues. You can refer to the implementation below

xkiller838 commented 11 months ago

Thank you very much I am going to compare what I have wrong with the code that you show me it is strange I see it the same as mine but I am going to compare it anyway sorry for the inconvenience and thanks for answering me so quickly

vjik commented 2 months ago

There is problem when infinite scroll usage with AJAX. If loading property always false, then everything work good, but if use loading (true before start ajax and false after finish), then inifinite scroll work after close and reopen list.