Skip to content

fix: prevent repeated select-all behavior in TimePickerSimple to allo…#1139

Open
ThieryPeleias wants to merge 1 commit into
solidtime-io:mainfrom
ThieryPeleias:fix/time-picker-caret-positioning
Open

fix: prevent repeated select-all behavior in TimePickerSimple to allo…#1139
ThieryPeleias wants to merge 1 commit into
solidtime-io:mainfrom
ThieryPeleias:fix/time-picker-caret-positioning

Conversation

@ThieryPeleias

@ThieryPeleias ThieryPeleias commented Jun 27, 2026

Copy link
Copy Markdown

What does this PR do?

This PR prevents the repeated select-all text behavior in the TimePickerSimple component. Currently, mouseup, click, and pointerup event listeners force a full text selection on every pointer event. While editing was still possible via keyboard navigation, this made editing with the mouse extremely difficult as users could not position the caret or select custom text ranges with clicks.

With this change:

  • When the input first receives focus, all text is selected once.
  • On subsequent clicks, caret positioning and text selection work normally with the mouse, making editing with the mouse much easier and intuitive.
  • Discussion: Select only hours or minutes #1100

Checklist (DO NOT REMOVE)

@CLAassistant

CLAassistant commented Jun 27, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

…w caret placement and partial text selection

This resolves the issue where editing a time input selects the entire value on every click/pointer event, preventing single-digit edits.

Ref: solidtime-io#1100
@ThieryPeleias ThieryPeleias force-pushed the fix/time-picker-caret-positioning branch from 5136f0a to 03c8aaa Compare June 27, 2026 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants