Skip to content

Content types: Apply text selection when unlocking alias#20882

Merged
AndyButland merged 2 commits intomainfrom
v17/bugfix/input-with-alias-preselect-when-focus
Nov 18, 2025
Merged

Content types: Apply text selection when unlocking alias#20882
AndyButland merged 2 commits intomainfrom
v17/bugfix/input-with-alias-preselect-when-focus

Conversation

@engijlr
Copy link
Contributor

@engijlr engijlr commented Nov 18, 2025

Fixed: #20830

Problem
When clicking the lock icon to unlock the alias field in umb-input-with-alias (used in Document Type editor and other places), the alias value is no longer pre-selected.

Solution

Added requestAnimationFrame() to select text after the input finishes focusing.

How to Test

Navigate to Settings-Document Types
Open any Document Type or create a new one
Add a new property or edit an existing one
Click the lock icon next to the alias field
The entire alias value should be selected.

Copy link
Contributor

@AndyButland AndyButland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works nicely, thanks @engijlr.

@AndyButland AndyButland changed the title Content types/Input-with-alias: Restore text selection when unlocking alias. Content types: Apply text selection when unlocking alias Nov 18, 2025
@AndyButland AndyButland merged commit e46e65e into main Nov 18, 2025
28 checks passed
@AndyButland AndyButland deleted the v17/bugfix/input-with-alias-preselect-when-focus branch November 18, 2025 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clicking Alias Field in Doctype does not preselect the alias

2 participants