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

Tab out of select field #116

Closed
Closed
@SimeonC

Description

@SimeonC

This is a bug with #92.

Steps

  1. Click to open field - so it shows the input field for searching.
  2. Press TAB
  3. ui-select is still active field.

Problem
Step 3 should be that the next tabbable input should be focussed.

Fix
I think the fix for this is to do with the tabindex attribute. Currently we have 2 inputs, the tabindex="-1" input used for searching (search input) and the other one we use for detecting tab order (tab input) has class .ui-select-offscreen.
The solution I think is as follows:

  1. Click to open field - Triggers a focus for the 'search input' field.
  2. The 'search input' field has it's tabindex attribute set to that of the 'tab input'
  3. The 'tab input' field should have it's tabindex attribute set to -1.
    4 On 'search input' blur (item selected/tab out etc) return the tabindex to what they originally were.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions