adobe / adobe/react-spectrum

ResizableTableContainer: Column resize to infinite width when wrapped with display: flex

Open
#5,412 6 comments 1 reaction 0 assignees View on GitHub
bug has workaround help wanted
Dominant language
TypeScript
Stars
15.9k
Forks
1.6k
Avg merge
3d 9m
Merged PRs (30d)
59

Description

### Provide a general summary of the issue here

When rendering a `ResizableTableContainer` which for parent has an element with style `display: flex`, the columns are expanding in size infinitely if they're not bounded (not using maxWidth).

### 🤔 Expected Behavior?

Columns most likely should not have this behavior

### 😯 Current Behavior

Columns are expanding in width infinitely

### 💁 Possible Solution

workaround: use `div` with `display: block`

### 🔦 Context

Obviously I don't think this is a blocker, but it's something I got surprised by when trying to use `ResizableTableContainer`.

### 🖥️ Steps to Reproduce

https://codesandbox.io/s/interesting-curran-lsx537?file=/src/App.js

### Version

1.0.0-rc.0

### What browsers are you seeing the problem on?

Firefox, Chrome, Safari, Microsoft Edge

### If other, please specify.

_No response_

### What operating system are you using?

MacOS Sonoma

### 🧢 Your Company/Team

_No response_

### 🕷 Tracking Issue

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.