kbss-cvut/s-forms

Tree autocomplete does not allow to select values by keyboard

Closed this issue · 7 comments

  • we might use the original component for autocomplete (react-select) for simple values (having something like layout-class "simple-typeahead"), but only in case if the old react-select component worked fine

@LaChope

@blcham Here is the ticket for removing Select component: #218

@blcham I need to better understand the use case.

  1. Does this need to work for record-manager-ui (so in the branch downgrade-react-17)?
  2. Does it need to work for the tree also or only without tree?

Ad 1) No we need it only for main branch
Ad 2) It should be possible to select the value without the use of the mouse. We need to investigate first how hard it is to implement it in the tree and based on that we can decide if we support it only for list or also support it for the tree.

Simple typeahead should have flag: FLAT_TYPEAHEAD: "flat-typeahead"

@blcham PR was created there lecbyjak/intelligent-tree-select#73

edit: When navigating with keyboard, focus of navigated option is lost if there is the scrollbar

@blcham intelligent-tree-select is using virtualization (via react-window dependency), this is why the focus is lost when navigating with keyboard. Here is interesting issue to follow: bvaughn/react-window#650

@blcham We can merge this