Skip to content
Bug reportSep 17, 2026· 0:23· 3 views

PrimeNG InputNumber: selecting all text then pressing Enter resets the value to 0

0:23 total

Comments · 0

Be the first to comment.

Bug report— by SceneRecap AI

mediumcomponents/inputnumber
os: macOSlocale: en-USbrowser: Chromium 151.0.7922.34timezone: Europe/Berlinviewport: 1280x720

Repro steps

  1. 1.Navigate to the PrimeNG InputNumber component documentation page.
  2. 2.Focus the 'Monthly budget' InputNumber field and change the value to $42.00.
  3. 3.Select the entire text in the InputNumber field using Cmd+A.
  4. 4.Press the Enter key.

Expected

The InputNumber retains the entered value ($42.00) upon pressing Enter.

Actual

The InputNumber value resets to $0.00 upon pressing Enter with the text selected.

Evidence

visualInputNumber displays '$42.00' prior to pressing Enter.
visualInputNumber value resets to '$0.00' immediately after Enter is pressed on the selected value.
Issue markdown (copy-paste ready)
### Summary
When selecting the entire content of a PrimeNG `p-inputnumber` component and pressing `Enter`, the value unexpectedly clears/resets to `0` (`$0.00`) instead of maintaining the current numeric value.

### Environment
- **Browser:** Chromium 151.0.7922.34
- **OS:** macOS
- **Viewport:** 1280x720

### Steps to Reproduce
1. Open the PrimeNG InputNumber documentation preview.
2. Click the 'Monthly budget' input and enter a value (e.g., `$42.00`).
3. Select all text within the input via `Cmd+A` / `Ctrl+A`.
4. Press `Enter`.

### Expected Result
The input value should remain `$42.00`.

### Actual Result
The input value resets to `$0.00`.

*Recorded with SceneRecap.*

Your recordings could explain themselves too.

Free plan · silent recordings welcome · bug reports included.

Try SceneRecap free →
PrimeNG InputNumber: selecting all text then pressing Enter resets the value to 0 · SceneRecap