Merge branch 'bugfix/drop_down_selection' into 'release/7_6_0'

slection

See merge request BPHV_MIPS/mvm_core_ui!398
This commit is contained in:
Suresh, Kamlesh Jain 2020-04-21 15:42:35 -04:00
commit 1d58dff082

View File

@ -18,6 +18,11 @@
public var options: [String] = [] public var options: [String] = []
public var selectedIndex: Int = 0 public var selectedIndex: Int = 0
public override func formFieldValue() -> AnyHashable? {
guard !options.isEmpty else { return nil }
return options[selectedIndex]
}
//-------------------------------------------------- //--------------------------------------------------
// MARK: - Keys // MARK: - Keys
//-------------------------------------------------- //--------------------------------------------------