Skip to content

[ScrollArea] Fix forceMount type on Scrollbar #738

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

Merged
merged 3 commits into from
Jun 23, 2021

Conversation

jjenzz
Copy link
Contributor

@jjenzz jjenzz commented Jun 22, 2021

Fixes #728

The bug was caused because of the ScrollAreaScrollbarVisible part of the union which doesn't have a forceMount prop. It looks like this was confusing the type implementation for Stitches and styled-components.

It works fine without these libraries e.g. React.ComponentProps<typeof ScrollArea.Scrollbar> reports fine but I've made this change anyway to please external libs. Not sure why they break.

@jjenzz jjenzz changed the title Fix forceMount type [ScrollArea] Fix forceMount type on Scrollbar Jun 22, 2021
@benoitgrelard benoitgrelard merged commit 8c5044f into main Jun 23, 2021
@benoitgrelard benoitgrelard deleted the fix-scrollbar-types branch June 23, 2021 18:20
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 this pull request may close these issues.

[ScrollArea] ScrollArea.Scrollbar loses types after being put through a Stitches styled call
2 participants