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

To -Infinity and Beyond #239

Open
timothyallan opened this issue May 21, 2023 · 2 comments
Open

To -Infinity and Beyond #239

timothyallan opened this issue May 21, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@timothyallan
Copy link

Describe the bug

In SolidJS, trying to setFields to Infinity/-Infinity, or even the string values of them causes a The specified value "-Infinity" cannot be parsed, or is out of range. warning from setControlValue in domUtils and the field is never set.

Which package/s are you using?

@felte/solid (SolidJS)

Environment

  • OS: Any
  • Browser: Any
  • Version:
    "@felte/reporter-solid": "^1.2.5",
    "@felte/solid": "^1.2.7",

To reproduce

do a

setFields('myControl', -Infinity) 
or
setFields('myControl', `${-Infinity}`)`

Small reproduction example

No response

Screenshots

No response

Additional context

No response

@timothyallan timothyallan added the bug Something isn't working label May 21, 2023
@pablo-abc
Copy link
Owner

Can you give me some more context? What type of input are you trying to assign a value of Infinity to? number?

@timothyallan
Copy link
Author

Sure, it's being used for a 3d boundary/camera system. Most numbers, as well as Infinity/-Infinity are all valid values for the bounds, as well as various other 3d properties. So you can have a vector that is {x:3.14, y:10000, z:Infinity}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants