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 inputNumber with numeric prefix is not working as expected #15398

Merged

Conversation

nbrown-ScottLogic
Copy link
Contributor

FIXED #15311

The issue was essentially that each time a value was entered a RegExp would be used to replace the prefix and suffix with '' however the RegExp had the /g flag and as such would replace all occurances of the pre/suffix including any occurances entered by the user. I also fixed some issues around the use of backspace and delete keys when the selector was around the prefix and suffix

Copy link

vercel bot commented Apr 29, 2024

@nbrown-ScottLogic is attempting to deploy a commit to the primetek Team on Vercel.

A member of the Team first needs to authorize it.

@cetincakiroglu cetincakiroglu added the Status: Pending Review Issue or pull request is being reviewed by Core Team label May 3, 2024
@cetincakiroglu
Copy link
Contributor

Hi @nbrown-ScottLogic,

If I enter the number same as suffix in empty input, it doubles the number. Could you please also take a look at it? Also, there are accordion related code in your PR, could you please remove them. It should be one file updated: inputnumber.

Screenshot 2024-05-03 at 13 06 01

@cetincakiroglu cetincakiroglu added the Resolution: Needs Revision The pull request can't be merged. Conflicts need to be corrected or documentation and code updated. label May 3, 2024
…f it is then just add the input not the prefix/suffix
@nbrown-ScottLogic
Copy link
Contributor Author

@cetincakiroglu Changes you've requested should be present now, thanks for the feedback.

@cetincakiroglu
Copy link
Contributor

Hi,

Thanks a lot for the effort and support!

@cetincakiroglu cetincakiroglu removed Status: Pending Review Issue or pull request is being reviewed by Core Team Resolution: Needs Revision The pull request can't be merged. Conflicts need to be corrected or documentation and code updated. labels May 9, 2024
@cetincakiroglu cetincakiroglu merged commit ab4aa67 into primefaces:master May 9, 2024
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

inputNumber with numeric prefix is not working as expected
2 participants