material-components-android icon indicating copy to clipboard operation
material-components-android copied to clipboard

[Date picker] Text input mode: Cursor should be positioned at end of text field

Open mtotschnig opened this issue 1 year ago • 0 comments
trafficstars

Description: In version 1.9.0, when opening DatePicker with text input mode and a default selection, the cursor was positioned at the end: Screenshot_1705689616

Since version 1.10.0 it is positioned at the beginning; Screenshot_1705689939

Expected behavior: For usability, it is preferable to position cursor at the end, since in order to delete the default selection, user must now change cursor position first.

Minimal sample app repro: The issue can be reproduced with the Catalog app -> Date Picker. Set Default Selection to Today, and Input Mode to Text Input.

The problem seems to have been introduced with commit 4032a741127b4715c3bbcd4cab08494b39ae5bdb

Android API version: API 32

Material Library version: Since 1.10.0

Device: Emulator

mtotschnig avatar Jan 19 '24 18:01 mtotschnig