Giter Site home page Giter Site logo

multi-list-control's People

Contributors

joestrong avatar

Watchers

 avatar  avatar

multi-list-control's Issues

Search Only Searches On Previously Entered String

Currently the search as you type feature searches based on your previous string.

Eg: if you type in a, no search request is sent
if you type in ab, a search for a is sent
if you type in abc, a search for ab is sent
etc

Loading Feedback

Currently there is no feedback to the user that their search is running it just looks like nothing has happened

No Reason Given When Limit Reached

There is no reason given to the user when they reach the limit of the number of items they can select, while the search box is disabled there is nothing to tell you why.

Race Condition

As there is no request cancellation or debouncing (#13) on the suggestion code it's fairly likely to get race conditions

Dragging An Item Should Remove It From The List

When you drag an item the item that you're dragging should no longer appear in the list as you've 'picked it up'. If you don't you get weird things like you can drop the item above or below itself which makes no sense

String Localisation

Currently there is no way to translate any of the hardcoded strings (eg Search...). Maybe we could pass in an optional set of translated strings on initialisation?

JS Error On Drag

You get the following error when dragging items

TypeError: e.target.closest is not a function

Searches Run On Non-Inputting Key Presses

If you are focused on the search box and you press keys that don't input text like <ctrl> + A a search is still run.

Easily fixed by replacing the keypress event with input

Add tests

Things to add tests for:

  • Check that integer keys work

Add jsdoc

Add jsdoc to all methods, so we can mark up with types

Searches Appended To Suggestion List

When you do a search items are added to the suggestion list but then when you search again (or keep typing) the next set of results are appended to the current list so it looks like it isn't searching

Suggestion Debouncing

Currently the search suggestions are run as fast as the user can type, there should be some debouncing to reduce queries sent

Indentation Wrong

We're currently using 2 space indentation rather than the standard 4 spaces

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.