Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Former/RowFormers/PickerRowFormer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ open class PickerRowFormer<T: UITableViewCell, S>
cell.selectionStyle = .none

// UPDATES SELECTED ROW TO 0, IN CASE THE COUNT OF UPDATED PICKER ITEMS ARRAY IS LESS THAN PRIOR ARRAY
self.selectedRow = 0
if pickerItems.count <= selectedRow {
selectedRow = 0
}

// RELOADS PICKER VIEW TO UPDATE ITEMS IN INLINE PICKER
let picker = cell.formPickerView()
Expand Down