Digital ACT-191 ONEAPP-7135 story: minor changes on noticed issues

This commit is contained in:
vasavk 2024-04-08 16:22:01 +05:30
parent d0f5f26e82
commit f584ccd6ba

View File

@ -308,6 +308,7 @@ open class DropdownSelect: Control {
transparentBackground = false
required = false
options = []
selectId = 0
}
//--------------------------------------------------
@ -449,6 +450,7 @@ extension DropdownSelect: UIPickerViewDelegate, UIPickerViewDataSource, UITextFi
public func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
guard options.count > row else { return }
selectId = row
updateSelectedOptionLabel(text: options[row].text)
self.onDropdownItemSelect?(options[row])
}