WebHost: Fix NamedRange option dropdown being blank instead of custom when applying presets (#4063)

This commit is contained in:
Remy Jette 2024-10-17 09:40:46 -07:00 committed by GitHub
parent 63d471514f
commit ede59ef5a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -288,6 +288,11 @@ const applyPresets = (presetName) => {
}
});
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"