mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-26 07:45:34 +00:00
fix(extensions): preserve slider range defaults
This commit is contained in:
@@ -262,7 +262,7 @@ function ExtensionSettingsSection({
|
||||
}
|
||||
|
||||
if (field.type === "slider") {
|
||||
const step = field.step ?? 0.01;
|
||||
const step = field.step ?? 1;
|
||||
const stepText = String(step);
|
||||
const precision = stepText.includes(".")
|
||||
? stepText.split(".")[1]?.length ?? 0
|
||||
@@ -274,7 +274,7 @@ function ExtensionSettingsSection({
|
||||
value={typeof value === "number" ? value : (field.defaultValue as number)}
|
||||
defaultValue={field.defaultValue as number}
|
||||
min={field.min ?? 0}
|
||||
max={field.max ?? 1}
|
||||
max={field.max ?? 100}
|
||||
step={step}
|
||||
onChange={(v) => {
|
||||
extensionHost.setExtensionSetting(extensionId, field.id, v);
|
||||
|
||||
Reference in New Issue
Block a user