mikaelmello / inquire

A Rust library for building interactive prompts
https://docs.rs/inquire
MIT License
1.71k stars 72 forks source link

MultiSelect list doesn't show after filter is cleared on selection #238

Closed Swivelgames closed 3 months ago

Swivelgames commented 3 months ago

Describe the bug When using the MultiSelect, after a selection is made using the filter and the filter clears, the list doesn't reset. It requires the user to type and clear the filter manually to be able to see the whole list again.

To Reproduce Steps to reproduce the behavior:

  1. Implement a MultiSelect
  2. Run your program
  3. When you get to a MultiSelect Prompt, type in to filter the list
  4. Select an item

Expected behavior When the filter clears, the list should show all items again.

Actual behavior Notice the filter clears, but the list doesn't reset. Typing in to filter the list again and deleting the filter manually then shows the whole list again.

Screenshots

  1. Initial List image

  2. Filter the list image

  3. Select an item (filter clears, but list doesn't reset) image

  4. Filter the list again image

  5. Backspace the filter to show the whole list again image

mikaelmello commented 3 months ago

Fixed on v0.7.4 :)

Thanks for reporting