Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

fix: fix checkbox regression (#3464)

Igor Dykhta8c4b5f8f3397
diff --git a/src/components/src/common/checkbox.tsx b/src/components/src/common/checkbox.tsx
index f855ee194..fc46af23a 100644
--- a/src/components/src/common/checkbox.tsx
+++ b/src/components/src/common/checkbox.tsx
@@ -97,8 +97,6 @@ const Checkbox: FC<CheckboxProps> = ({
[onBlur]
);
- const inputType = type === 'radio' ? 'radio' : 'checkbox';
-
const inputProps = {
checked,
disabled,
@@ -107,7 +105,7 @@ const Checkbox: FC<CheckboxProps> = ({
onChange,
value,
secondary,
- type: inputType,
+ type: 'checkbox' as const,
onFocus: handleFocus,
onBlur: handleBlur
};