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

Unexpected behavior with 'size' property #9

Open
ampossardt opened this issue Nov 26, 2024 · 0 comments
Open

Unexpected behavior with 'size' property #9

ampossardt opened this issue Nov 26, 2024 · 0 comments

Comments

@ampossardt
Copy link

There are a few issues when using the size property to manually control the size of a column:

  • When passing '0' to the size property, size doesn't get used at all (coalescing issue?)
  • If any value is passed to the size prop after render, the section doesn't re-render and the size of the section doesn't change

Here's a quick reproduction:
https://stackblitz.com/edit/vitejs-vite-8ruu24?file=src%2FApp.tsx

I'm not sure if this is intended behavior or not, but since the docs refer to size as an override for any other defined values, I'd assume that it would act almost like a controlled value.

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

No branches or pull requests

1 participant