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

Undo in expression inputs disregards values being set #921

Open
shueja opened this issue Nov 12, 2024 · 0 comments · May be fixed by #922
Open

Undo in expression inputs disregards values being set #921

shueja opened this issue Nov 12, 2024 · 0 comments · May be fixed by #922

Comments

@shueja
Copy link
Collaborator

shueja commented Nov 12, 2024

Reproduce:
Add a waypoint
Click into the waypoint X input, which will have some long decimal number like 6.321791648864746 m
Select all, delete
Type "8m", press Enter. This will not be accepted as-is, but the app will write a modified version 8 m into the input.
Click back into the input, press ctrl-Z. See the input contents as 8 m6.321791648864746 m (with all but 8 m selected)

Notes:
This does not happen if the delete button is skipped (i.e. typing directly over the selection).

Another variant of the same bug:

Reproduce:
Add a waypoint
Click into the waypoint X input, which will have some long decimal number like 6.321791648864746 m
Select all, delete
Press Enter with the input still empty. This will make JavaScript restore the original number
Click back into the input, press ctrl-Z. See the input contents as 6.321791648864746 m6.321791648864746 m with the latter copy selected.

@shueja shueja linked a pull request Nov 13, 2024 that will close this issue
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 a pull request may close this issue.

1 participant