MCPcopy Create free account
hub / github.com/continuedev/continue / closeDropDown

Function closeDropDown

gui/src/components/modelSelection/ModelSelect.tsx:54–60  ·  view source on GitHub ↗

makeshift way to close the headlessui listbox due to absence of open state on the listbox

(button: HTMLButtonElement | null)

Source from the content-addressed store, hash-verified

52
53/**makeshift way to close the headlessui listbox due to absence of open state on the listbox */
54function closeDropDown(button: HTMLButtonElement | null) {
55 if (!button) return;
56 button.classList.add("hidden");
57 setTimeout(() => {
58 button.classList.remove("hidden");
59 });
60}
61
62function ModelOption({
63 option,

Callers 2

onClickAddModelFunction · 0.85
onClickConfigureModelsFunction · 0.85

Calls 2

addMethod · 0.65
removeMethod · 0.45

Tested by

no test coverage detected