Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed curser position for negative numbers with suffix #13640

Merged
merged 1 commit into from
Jan 10, 2024
Merged

Fixed curser position for negative numbers with suffix #13640

merged 1 commit into from
Jan 10, 2024

Conversation

johanneszelger
Copy link
Contributor

@johanneszelger johanneszelger commented Sep 9, 2023

When a negative number is entered with a suffix and minimum fraction digits, the format was incorrect.

For example:
-suffix " %"
-minFractionDigits 2
-0 resulted in a -00 concat value. (correct would be 0.00 %)

This results in a new call of formatValue() in handleOnInput(). The format is then correct, but the cursorposition is put to the end of the input: "0.00 %|" instead of "0|.00 %"

Fix #13651

When a negative number is entered with a suffix and minimum fraction digits, the format was incorrect.

For example:
-suffix " %"
-minFractionDigits 2
-0 resulted in a -00 concat value. (correct would be 0.00 %)

This results in a new call of formatValue() in handleOnInput(). The format is then correct, but the cursorposition is put to the end of the input: "0.00 %|" instead of "0|.00 %"
@vercel
Copy link

vercel bot commented Sep 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
primeng-ssr-test ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 9, 2023 10:14am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
primeng ⬜️ Ignored (Inspect) Visit Preview Sep 9, 2023 10:14am

@vercel vercel bot temporarily deployed to Preview – primeng-ssr-test September 9, 2023 10:14 Inactive
@SoyDiego
Copy link
Contributor

SoyDiego commented Sep 9, 2023

Thanks for your contribution.
You shoud create a issue here https://github.com/primefaces/primeng/issues, add screenshots, stackblitz or something showing the problem and then link this PR adding `Fix #YourIssueNumber" in your first comment of this PR.

@johanneszelger
Copy link
Contributor Author

Added issue

@SoyDiego
Copy link
Contributor

Added issue

Fix #13651 with # symbol to link your issue to this PR

Copy link

This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment, and we will keep it open. We are sorry that we have not been able to prioritize reviewing it yet. Your contribution is very much appreciated.

@github-actions github-actions bot added the Resolution: Stale Issue or pull request is inactivity and unfortunately it will be *closed* if there is no response label Jan 10, 2024
@johanneszelger
Copy link
Contributor Author

Anything i can do to speed this up?

@cetincakiroglu cetincakiroglu removed the Resolution: Stale Issue or pull request is inactivity and unfortunately it will be *closed* if there is no response label Jan 10, 2024
@cetincakiroglu cetincakiroglu merged commit dd2a6e2 into primefaces:master Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants