Skip to content

impr(input-validation): clean preset name input when adding (@byseif21)#7703

Merged
Miodec merged 1 commit intomonkeytypegame:masterfrom
byseif21:fix/clear-preset-name
Mar 22, 2026
Merged

impr(input-validation): clean preset name input when adding (@byseif21)#7703
Miodec merged 1 commit intomonkeytypegame:masterfrom
byseif21:fix/clear-preset-name

Conversation

@byseif21
Copy link
Contributor

ValidatedHtmlInputElement would reset its validation status but keep the old text in the input field

1- go to presets
2- click edit from one of the existing ones
3- go back and click add preset
4- notice the edit one's name is there

Copilot AI review requested due to automatic review settings March 22, 2026 18:11
@monkeytypegeorge monkeytypegeorge added the frontend User interface or web stuff label Mar 22, 2026
@github-actions github-actions bot added the waiting for review Pull requests that require a review before continuing label Mar 22, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes ValidatedHtmlInputElement.setValue(null) to clear the underlying input value (not just reset validation UI/state), preventing stale text from persisting when switching from “edit preset” to “add preset”.

Changes:

  • Clear the input’s value when setValue(null) is called.
  • Keep existing behavior of hiding the indicator and resetting validation status without triggering validation.

@byseif21 byseif21 changed the title fix(input_validation): preset name from previous edit remains in input when new add (@byseif21) imp(input-validation)r: clean preset name input when adding (@byseif21) Mar 22, 2026
@byseif21 byseif21 changed the title imp(input-validation)r: clean preset name input when adding (@byseif21) impr(input-validation)r: clean preset name input when adding (@byseif21) Mar 22, 2026
@byseif21 byseif21 changed the title impr(input-validation)r: clean preset name input when adding (@byseif21) impr(input-validation): clean preset name input when adding (@byseif21) Mar 22, 2026
@Miodec Miodec merged commit 12fbad3 into monkeytypegame:master Mar 22, 2026
26 of 29 checks passed
@github-actions github-actions bot removed the waiting for review Pull requests that require a review before continuing label Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend User interface or web stuff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants