2
0

🚸 Improve feedback when variable input did …

This commit is contained in:
Baptiste Arnaud
2024-07-18 16:08:24 +02:00
parent 2e016e9044
commit 1f71b86f09

View File

@ -81,7 +81,10 @@ export const VariableSearchInput = ({
useOutsideClick({ useOutsideClick({
ref: dropdownRef, ref: dropdownRef,
handler: onClose, handler: () => {
onClose()
setInputValue(variables.find(byId(initialVariableId))?.name ?? '')
},
isEnabled: isOpen, isEnabled: isOpen,
}) })