vaadin / vaadin/framework

Not possible to set tabIndex==-1 for parts of a CustomField in Grid editor

Open
#7,112 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Stale v7
Dominant language
Java
Stars
1.8k
Forks
717
Avg merge
2d 6h
Merged PRs (30d)
3

Description

Originally by guttorm


We have a CustomField that looks like the ComboBox / DateField. Ie a button + an input field.

We set the tabIndex of the button to -1, but when used in the Grid editor it becomes 0.

When looking at the "?debug" property inspector, the tab index is "-1" for the button, but in the actual html it is "0"


Imported from https://dev.vaadin.com/ issue #18814

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with a CustomField containing a button and input field inside the Grid editor, comparing the configured tabIndex with the generated HTML. Trace the Grid editor and CustomField focus handling; done means a button configured with tabIndex=-1 remains excluded from keyboard tab navigation in the rendered editor.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
accessibility, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.