Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

read_dropdown is not filtering appropriately when the list is sufficiently long #17

@Xatrekak

Description

@Xatrekak

Type - self hosted
Version - hackerforms 0.2.1
install - via PyPi
OS - Linux Pop!_OS
Browser - Chromium Version 101.0.4951.41 (Official Build) (64-bit)

The read_dropdown function does not correctly filter all of the values when the list is sufficiently long.
Correct behavior is observed when there are fewer than 68 elements to be filtered as seen below:
unfiltered
filtered_correct

Once the list has 68 or more elements in it the list does not filter completely:
filtered_incorrect

=================================================

More elements remain unfiltered the longer the list. However the count of unfiltered elements does not increase linearly with the length of the search list as seen with this list of 200 elements:
Before:
unfiltered_long
After:
filtered_very_incorrect

=================================================

Correct behavior is once again observed if the filter string is pasted in completely and not typed out character by character as seen with the list of 1000 elements:
unfiltered_long
filtered_correct_long

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions