Digital ACT-191 ONEAPP-7135 story: minor changes on noticed issues
This commit is contained in:
parent
d0f5f26e82
commit
f584ccd6ba
@ -308,6 +308,7 @@ open class DropdownSelect: Control {
|
|||||||
transparentBackground = false
|
transparentBackground = false
|
||||||
required = false
|
required = false
|
||||||
options = []
|
options = []
|
||||||
|
selectId = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
@ -449,6 +450,7 @@ extension DropdownSelect: UIPickerViewDelegate, UIPickerViewDataSource, UITextFi
|
|||||||
|
|
||||||
public func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
|
public func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
|
||||||
guard options.count > row else { return }
|
guard options.count > row else { return }
|
||||||
|
selectId = row
|
||||||
updateSelectedOptionLabel(text: options[row].text)
|
updateSelectedOptionLabel(text: options[row].text)
|
||||||
self.onDropdownItemSelect?(options[row])
|
self.onDropdownItemSelect?(options[row])
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user