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

[Bug][NumericTextBox] Pressing character keys clears parts of the entered number #2528

Open
kdikov82 opened this issue Sep 25, 2024 · 1 comment
Labels
Bug Item which indicates that something is not working KendoReact pkg:Inputs SEV: Low triaged mark the triaged issues with correct priority

Comments

@kdikov82
Copy link
Contributor

I'm submitting a...

  • Bug report

Current behavior

Pressing any character on the keyboard will clear part of the entered number, based on the cursor position.

Expected behavior

Pressing non-numeric characters should not affect the value in the NumericTextBox

Minimal reproduction of the problem with instructions

  1. Open the example https://stackblitz.com/edit/react-4qxkt4?file=app%2Fapp.jsx
  2. Place the cursor before the decimal separator (or before any digit different than 0) in the NumericTextBox and press any character key ('a' for example)
  3. All values after the cursor position will be cleared.

Package versions:
8.3.0

@kdikov82 kdikov82 added Bug Item which indicates that something is not working pkg:Inputs SEV: Low KendoReact labels Sep 25, 2024
@kdikov82
Copy link
Contributor Author

Temporary workaround is to stop the propagation of the keydown event conditionally:
https://stackblitz.com/edit/react-3zbode-h9h7jm?file=app%2Fmain.tsx

@vveesseelliinnaa vveesseelliinnaa added the triaged mark the triaged issues with correct priority label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Item which indicates that something is not working KendoReact pkg:Inputs SEV: Low triaged mark the triaged issues with correct priority
Projects
None yet
Development

No branches or pull requests

2 participants