We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 24d10e0 + 54fbae9 commit 28457beCopy full SHA for 28457be
2 files changed
src/components/MultiSelect/MultiSelect.tsx
@@ -296,7 +296,6 @@ export function MultiSuggestField<T>({
296
* @param query
297
*/
298
const onQueryChange = (query: string) => {
299
- setFilteredItems([]);
300
if (query.length && query !== requestState.current.query) {
301
requestState.current.query = query;
302
if (requestState.current.timeoutId) {
src/test/setupTests.js
@@ -1,4 +1,10 @@
1
import "regenerator-runtime/runtime";
2
+import { TextEncoder, TextDecoder } from "util";
3
+
4
+// Polyfill TextEncoder/TextDecoder for React 18
5
+global.TextEncoder = TextEncoder;
6
+global.TextDecoder = TextDecoder;
7
8
9
if (window.document) {
10
window.document.body.createTextRange = function () {
0 commit comments