added value in case there is a difference

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-04-09 15:38:10 -05:00
parent 7b9aa51d0a
commit 8311de5409

View File

@ -12,9 +12,11 @@ extension DropdownSelect {
/// Text that goes as option to DropdownSelect
public var text: String
public var value: String
public init(text: String) {
public init(text: String, value: String? = nil) {
self.text = text
self.value = value ?? text
}
}
}