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

fix: set default initial value on web #621

Merged
merged 1 commit into from
Aug 24, 2024

Conversation

draggie
Copy link
Contributor

@draggie draggie commented Aug 21, 2024

Summary:

Referencing this issue: #617
React native web implementation had no default value set for initial value therefore resulting in such issues.
According to mobile implementation and documentation set the default value for initialValue prop to be 0.

Test Plan:

Verified on controlled examples from example-web by setting initial useState value to undefined

@draggie draggie added the platform: Web Issue relates to react-native for web label Aug 21, 2024
@draggie draggie self-assigned this Aug 21, 2024
@BartoszKlonowski BartoszKlonowski linked an issue Aug 21, 2024 that may be closed by this pull request
@BartoszKlonowski BartoszKlonowski merged commit a088830 into main Aug 24, 2024
9 checks passed
@events-jonas-chrisw
Copy link

events-jonas-chrisw commented Sep 9, 2024

is this fixed - I still get an error when setting the slider to 0.
I have had to revert to 4.4.2

ah...hasn't been released yet.....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Web Issue relates to react-native for web
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot read properties of undefined (reading 'toFixed')
3 participants