Updated ToggleableButton to support no additional attributes.
This commit is contained in:
@@ -17,12 +17,5 @@
|
||||
|
||||
private bool state;
|
||||
|
||||
private string ButtonClasses
|
||||
{
|
||||
get
|
||||
{
|
||||
IReadOnlyDictionary<string, object> t = AdditionalAttributes;
|
||||
return (state ? "active " : "") + (AdditionalAttributes["class"] as string);
|
||||
}
|
||||
}
|
||||
private string ButtonClasses => (state ? "active " : null) + (AdditionalAttributes != null && AdditionalAttributes.ContainsKey("class") ? AdditionalAttributes["class"] as string : null);
|
||||
}
|
Reference in New Issue
Block a user