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

Fix: Prevent 'NumpadDecimal' Key When isInteger is True #1868

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

aibutler
Copy link
Contributor

This pull request addresses a bug where the numericKeyPress function did not correctly handle the 'NumpadDecimal' key when isInteger is true. The updated function now includes a condition to prevent the 'NumpadDecimal' key from being allowed if isInteger is true.

Changes Made

  • Added a condition to check if isInteger is true before handling the 'NumpadDecimal' key.
  • If isInteger is true, the function will not allow the 'NumpadDecimal' key.

Added a condition to check if the value is not an integer before allowing the insertion of a decimal separator when the 'NumpadDecimal' key is pressed. This ensures that decimal points are not inserted in fields restricted to integer values, maintaining their integrity.
@enchev enchev merged commit 3506256 into radzenhq:master Dec 19, 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
Development

Successfully merging this pull request may close these issues.

2 participants