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

Number fields on Token configuration sheet need to ensure that the input variables are integers before insisting on integer step size. #5627

Closed
aaclayton opened this issue Jul 16, 2021 · 1 comment
Assignees
Labels
bug Functionality which is not working as intended tokens Issues related to Tokens and their appearance ux Issues focused on user experience improvements
Milestone

Comments

@aaclayton
Copy link
Contributor

Originally in GitLab by @todlevi

  • Foundry VTT Version: 0.8.8
  • Operating System: Windows
  • How Are You Using Foundry: Chrome
  • Which Game System: dnd5e
  • Modules Enabled?: All Disabled

When I try to change the height or width of a tile I get a strange message: "Please Enter a valid value. The two nearest valid values are 1259.9 and 1260.9"
image
I am then not allowed to enter an integer value in the given range.

@aaclayton
Copy link
Contributor Author

This is a frustrating HTML issue when using a type="number" field with a certain allowed step size. We need to be sure to sanitize the input value to the same allowed step. I'll take a look at this.

@Fyorl Fyorl self-assigned this Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Functionality which is not working as intended tokens Issues related to Tokens and their appearance ux Issues focused on user experience improvements
Projects
No open projects
Status: No status
Development

No branches or pull requests

2 participants