Skip to content

[Backport 2024.01.xx] #10289: Cursor position is shifted incorrectly in Localized number field component (#10312)#10346

Merged
dsuren1 merged 1 commit intogeosolutions-it:2024.01.xxfrom
mahmoudadel54:porting_10289_2024.01.xx
May 21, 2024
Merged

[Backport 2024.01.xx] #10289: Cursor position is shifted incorrectly in Localized number field component (#10312)#10346
dsuren1 merged 1 commit intogeosolutions-it:2024.01.xxfrom
mahmoudadel54:porting_10289_2024.01.xx

Conversation

@mahmoudadel54
Copy link
Copy Markdown
Contributor

[Backport 2024.01.xx] - #10289: Cursor position is shifted incorrectly in Localized number field component (#10312)

…lized number field component (geosolutions-it#10312)

* geosolutions-it#10289: Cursor position is shifted incorrectly in Localized number field component
Description:
- fix the jumping cursor to unexpected positions for localized numeric input

* geosolutions-it#10289: Cursor position is shifted incorrectly in Localized number field component
Description:
- replace logic in updateDidMount to onKeyUp
- remove unused comments

* geosolutions-it#10289: Cursor position is shifted incorrectly in Localized number field component
Description:
- remove unused method in IntlNumberFormControl

* geosolutions-it#10136: Search for Map CRS coordinates
Description:
- resolve FE failure in unit test

* geosolutions-it#10289: Cursor position is shifted incorrectly in Localized number field component [resolve review comments]
Description:
- fix issue of on focus effect in NumericInput

* geosolutions-it#10289: Cursor position is shifted incorrectly in Localized number field component [resolve review comments]
Description:
- fix FE issue in onKeyDown in IntlNumberFormControl

* geosolutions-it#10289: Cursor position is shifted incorrectly in Localized number field component [resolve review comments]
Description:
- revert unnecessary change

* geosolutions-it#10289: Cursor position is shifted incorrectly in Localized number field component [resolve review comments]
Description:
- move the fixing logic of cursor position to componentDidUpdate instead of onKeyUp

* geosolutions-it#10289: Cursor position is shifted incorrectly in Localized number field component [resolve review comments]
Description:
- add onKeyUp as a prop into IntlNumberFormControl for any expected future consuming from a parent comp

* geosolutions-it#10289: Cursor position is shifted incorrectly in Localized number field component [resolve review comments]
Description:
- add unit test
- resolve review comments
@dsuren1 dsuren1 merged commit 05ba09c into geosolutions-it:2024.01.xx May 21, 2024
@dsuren1
Copy link
Copy Markdown
Contributor

dsuren1 commented May 21, 2024

@ElenaGallo Kindly test it in QA. Thanks

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.

Cursor position is shifted incorrectly in Localized number field component

2 participants