Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: fix copilot switch, move stopPropogation up (#138)

Myles Scolnick13319b70506d
diff --git a/frontend/src/components/app-config/user-config-form.tsx b/frontend/src/components/app-config/user-config-form.tsx
index 8d5772f68c..76cc4c275d 100644
--- a/frontend/src/components/app-config/user-config-form.tsx
+++ b/frontend/src/components/app-config/user-config-form.tsx
@@ -141,7 +141,10 @@ export const UserConfigForm: React.FC = () => {
control={form.control}
name="completion.copilot"
render={({ field }) => (
- <div className="flex flex-col gap-2">
+ <div
+ className="flex flex-col gap-2"
+ onClick={(evt) => evt.stopPropagation()}
+ >
<FormItem className="flex flex-row items-center space-x-2 space-y-0">
<FormControl>
<Switch
@@ -150,7 +153,6 @@ export const UserConfigForm: React.FC = () => {
onCheckedChange={(checked) => {
return field.onChange(Boolean(checked));
}}
- onClick={(evt) => evt.stopPropagation()}
/>
</FormControl>
<FormLabel className="font-normal flex">Enable</FormLabel>