diff --git a/pkg/ui/react-app/src/components/SearchBar.tsx b/pkg/ui/react-app/src/components/SearchBar.tsx index 761b290684..3b9a10bd88 100644 --- a/pkg/ui/react-app/src/components/SearchBar.tsx +++ b/pkg/ui/react-app/src/components/SearchBar.tsx @@ -13,6 +13,9 @@ const SearchBar: FC = ({ handleChange, placeholder }) => { const handleSearchChange = (e: ChangeEvent) => { clearTimeout(filterTimeout); + // TODO e.persist() should be removed once the upgrade to react v17 is done. + // https://reactjs.org/docs/legacy-event-pooling.html + e.persist(); filterTimeout = setTimeout(() => { handleChange(e); }, 300);