You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I input the first character, the following code will correctly fetch all units from server and render as options.
But when I input the second key, it just filter the data which comes from last time.
The options don't refresh with the second data from server.
The console shows that there are exactly two time queries.
How do I fix this?
Thanks for any help.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Bootstrap: v5.3.2
jquery: 3.7.1
Selectize: 0.15.2
When I input the first character, the following code will correctly fetch all units from server and render as options.
But when I input the second key, it just filter the data which comes from last time.
The options don't refresh with the second data from server.
The console shows that there are exactly two time queries.
How do I fix this?
Thanks for any help.
Beta Was this translation helpful? Give feedback.
All reactions