Skip to content

Cursor position is shifted incorrectly in Localized number field component #10289

@dsuren1

Description

@dsuren1

Description

Current localized number field component exhibits certain behavior which makes it editing field values a bit complex

  • When editing values in-between number, on change value, the cursor position always shifts to last
  • Upon performing any key combination (ctrl + a) the same behavior is exhibited and text selection is not retained

Note

Works fine which mouse selection though

How to reproduce

  • Edit a numeric field that is localized and enter values such that thousandSeparator is introduced
  • Observe the cursor position is shifted to the last instead of retaining it's correct position

Expected Result
Cursor position is retained correctly when editing value in a localized number field

Current Result
Cursor position is shifted incorrectly when editing values in-between number i.e on change value or any keyboard action like (ctrl+a) and text selection is not retained

  • Not browser related
Browser info (use this site: https://www.whatsmybrowser.org/ for non expert users)
Browser Affected Version
Internet Explorer
Edge
Chrome
Firefox
Safari

Other useful information

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions