skywinder / ActionSheetPicker-3.0

Quickly reproduce the dropdown UIPickerView / ActionSheet functionality on iOS.
http://skywinder.github.io/ActionSheetPicker-3.0
BSD 3-Clause "New" or "Revised" License
3.4k stars 740 forks source link

Action sheet reappears after pressing Done #476

Closed Klavar closed 4 years ago

Klavar commented 4 years ago

After I press done on the action picker it seems to reappear I have to then press cancel or click outside to get it to disapear

skywinder commented 4 years ago

Please provide code example of this behavior

Klavar commented 4 years ago

So looking into this more, it seems to happen when I call action sheet from a uitextfeild, and if I then resign first responder or end editing

vinaypiplani commented 4 years ago
ActionSheetStringPicker.show(withTitle: "", rows: state.compactMap({ $0.state }), initialSelection: currentSelectedStateIndex, doneBlock: { [unowned self] _, index, value in

          return
        }, cancel: { _ in return }, origin: UITextField())

if you click on done then return is not working, i have install "Installing ActionSheetPicker-3.0 (2.5.0)" latest pod. i have remove the return but its not working but if you click on cancel then its disappear.

skywinder commented 4 years ago

There is no recent activity for this issue. This issue has been closed as stale. Feel free to leave a comment below, if it's still actual.