fantasycalendar / FoundryVTT-ItemPiles

Other
33 stars 51 forks source link

[BUG] - [likely system agnostic]- Searchbar disapears when filter not giving enough results #561

Closed DenDrummer closed 1 week ago

DenDrummer commented 2 months ago

Are you on the latest version of Item Piles? Yes / No

Have you tried to reset Item Piles' system settings? Yes / No

Describe the bug When using the search bar to filter items, if the number of items after searching drops below 8, the search box disapears while the filter stays, resulting in having to close and reopen the pile if you want to search for something else.

To Reproduce Steps to reproduce the behavior:

  1. Open an item pile on the map with 8 or more items
  2. Focus the Search box
  3. Start typing until the list of filtered items drops below 8
  4. The search bar disappears

Expected behavior The search box stays visible while it is being used.

Screenshots If applicable, add screenshots to help explain your problem. image image image

Setup:

Active modules:

Additional context I have also tested this in a world with DnD 5e version 3.1.2, with the exact same result, so as I suspected, this loooks like a system-agnostic bug.

Additionally, while verifying this bug, I noticed another bug that where if you press backspace after step 3 as GM before clicking or focussing something else, it deletes the pile. This happens regardless of it being set to delete on empty or not and regardless of whether it has any items still shown or not. I suspect that this will no longer happen if the main bug from this bug report is fixed however.

p4535992 commented 2 months ago

Did you replicate this behaviour with only "Item Piles" module active ? Otherwise, I would ask you to use the "Find the culprit" module to help the developer reduce the number of modules to verify for conflicts.

Haxxer commented 1 week ago

Fixed in 3.0.0