Skip to content

fix(Select): no text caret in the read-only field - #618

Merged
lorant-one merged 2 commits into
previewfrom
claude/select-caret
Nov 25, 2026
Merged

lorant-one merged 2 commits into
previewfrom
claude/select-caret

Conversation

@lorant-one

Copy link
Copy Markdown
Member

What

Clicking a plain Select showed a blinking text cursor at the end of its value, as if the field were editable. This was reported on Tavilio's scoring picker. The field is a read-only input, and browsers still draw a caret in a focused read-only input.

Input.module.scss now sets caret-color: transparent on .input[readonly][role="combobox"]. That covers every read-only combobox field (Select, and the same pattern elsewhere), not just Select. Keyboard focus is unchanged, and the focused border still shows it. Editable inputs and searchable fields keep their caret.

Checks

  • New test: the Select field is a read-only combobox that the rule matches, and it still takes focus on click. jsdom loads no stylesheets, so a second test checks the rule in the module itself.
  • The existing Select tests pass.

Generated by Claude Code

@lorant-one
lorant-one merged commit 16615d5 into preview Nov 25, 2026
9 checks passed
@lorant-one lorant-one added the approved label Nov 26, 2026 — with Claude
@lorant-one lorant-one mentioned this pull request Nov 26, 2026
7 tasks done
@lorant-one
lorant-one deleted the claude/select-caret branch November 29, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants