FAQ > Not able to access Form Control Demo
Sorry for this bug. Please do the following to solve the bug. Thank you!
CustomHelper.cs
> CustomDropDown
, add the following before selectedValue = (string.IsNullOrEmpty(selectedValue) ?:**selectList = selectList == null ? new List<SelectListItem>() : selectList;** //add this line
selectedValue = (string.IsNullOrEmpty(selectedValue) ?
selectList.FirstOrDefault(a => a?.Selected == true)?.Value : selectedValue ) ?? "";
if (!string.IsNullOrEmpty(selectedValue))
{
input.Attributes.Add("value", selectedValue);
}
input.Attributes.Add("hidden", "");