2
0

feat(editor): ️ Add 'Current' to Link typebot

This commit is contained in:
Baptiste Arnaud
2022-03-25 14:59:40 +01:00
parent d06cbeac73
commit fb60dcf5ff
8 changed files with 29 additions and 12 deletions

View File

@@ -43,6 +43,14 @@ export const SearchableDropdown = ({
const dropdownRef = useRef(null)
const inputRef = useRef(null)
useEffect(
() => () => {
debounced.flush()
},
// eslint-disable-next-line react-hooks/exhaustive-deps
[]
)
useEffect(() => {
if (filteredItems.length > 0) return
setFilteredItems([