Skip to content

fix(inputnumber): support undo/redo shortcuts#8368

Open
Matthias-dmt wants to merge 3 commits intoprimefaces:masterfrom
Matthias-dmt:fix/inputnumber-undo
Open

fix(inputnumber): support undo/redo shortcuts#8368
Matthias-dmt wants to merge 3 commits intoprimefaces:masterfrom
Matthias-dmt:fix/inputnumber-undo

Conversation

@Matthias-dmt
Copy link

Fixes #8346

Summary

  • Add explicit undo/redo handling for InputNumber when Ctrl/Cmd+Z/Y is pressed.
  • Add regression tests for undo/redo behavior.

Rationale
InputNumber intercepts keypress events and updates the input value programmatically for formatting and cursor handling, which prevents the browser from maintaining a native undo history. This PR adds a small internal undo/redo stack to restore expected UX without refactoring the existing input workflow.

Test

  • pnpm exec vitest run src/inputnumber/InputNumber.spec.js

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.

NumberInput undo (ctrl+z) does not work

1 participant