WebHost: Fix NamedRange option dropdown being blank instead of custom when applying presets (#4063)
This commit is contained in:
parent
63d471514f
commit
ede59ef5a1
|
@ -288,6 +288,11 @@ const applyPresets = (presetName) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
namedRangeSelect.value = trueValue;
|
namedRangeSelect.value = trueValue;
|
||||||
|
// It is also possible for a preset to use an unnamed value. If this happens, set the dropdown to "Custom"
|
||||||
|
if (namedRangeSelect.selectedIndex == -1)
|
||||||
|
{
|
||||||
|
namedRangeSelect.value = "custom";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle options whose presets are "random"
|
// Handle options whose presets are "random"
|
||||||
|
|
Loading…
Reference in New Issue