Skip to content

fix: don't select the whole text field value on click - #4362

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/input-select-on-focus
Nov 9, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/input-select-on-focus

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

Clicking or tapping into a text field now just places the caret instead of selecting the whole value, so typing doesn't replace it. Dialogs that suggest a name (rename, new file, folder or space) still preselect it when they open.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: no selection on focus by default, preselect and selection range on open, no reselect after the user clicked or typed, focus trap refocus and tabbing back re-apply the range, password inputs, the modals and editor panels that preselect
  • test case 2: browser: reproduced on main, then on the fix: every input in modals (rename, new file/folder/space, space name and subtitle, link name, shortcut, embed file name), admin settings (users, groups, general), account, sharing, search, editor panels, desktop and Pixel 7, saving and validation still work

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear
AlexAndBear force-pushed the fix/input-select-on-focus branch from a121810 to b11e732 Compare November 9, 2026 11:23
@AlexAndBear
AlexAndBear merged commit cdbd0a4 into main Nov 9, 2026
28 checks passed
@AlexAndBear
AlexAndBear deleted the fix/input-select-on-focus branch November 9, 2026 16:11
@openclouders openclouders mentioned this pull request Nov 10, 2026
1 task
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.

Clicking into a text field selects its whole content

2 participants