fix: (regression beta) color-field reset was not working
Massimo Melina committed
Jan 20, 2025 at 10:04 UTC
133386e51890f8d6d86c8935b59e53fb56526bbd
1 file changed
+1
-1
admin/src/InstalledPlugins.ts
+1
-1
@@ -234,7 +234,7 @@ function ColorField(rest: FieldProps<string>) {
234
sx: { position: 'absolute', right: 4 },
235
title: "Clear",
236
onClick(event) {
237
- rest.onChange(undefined as any, { was: rest.value, event: event })
237
+ rest.onChange(null as any, { was: rest.value, event: event })
238
}
239
}) : h(Box, {
240
sx: {