This commit is contained in:
Víctor Losada Hernández
2026-10-29 14:56:35 +01:00
parent 302373e19c
commit 8ee317e8c4
-3
View File
@@ -24,7 +24,6 @@ const Combobox = ({
const [options, setOptions] = useState([...props.options]);
const [inputFocused, setInputFocused] = useState(false);
useEffect(()=>{
if(trigger == 'click') {
document.addEventListener('click', handleClickOutside);
@@ -121,7 +120,6 @@ const Combobox = ({
);
};
return (
<div className={`dropdown-container ${className}`}
ref={dropdownRef}
@@ -131,7 +129,6 @@ const Combobox = ({
</div>
);
};
export default Combobox;