@keenmate/web-multiselect 1.12.0-rc08 → 2.0.0-rc02

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/examples.md CHANGED
@@ -166,8 +166,8 @@ Show popular items initially, then switch to full database search when the user
166
166
  };
167
167
 
168
168
  // Search full database when user types 3+ characters
169
- select.onSearch = async (searchTerm) => {
170
- const response = await fetch(`/api/frameworks/search?q=${searchTerm}`);
169
+ select.searchCallback = async (searchTerm, signal) => {
170
+ const response = await fetch(`/api/frameworks/search?q=${searchTerm}`, { signal });
171
171
  return await response.json();
172
172
  };
173
173
  </script>