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

Forward refs for TableHeader <th> #4876

Closed
tay1orjones opened this issue Dec 13, 2019 · 0 comments · Fixed by #4877 or #5204
Closed

Forward refs for TableHeader <th> #4876

tay1orjones opened this issue Dec 13, 2019 · 0 comments · Fixed by #4877 or #5204

Comments

@tay1orjones
Copy link
Member

Summary

In developing column resizing for the data table for Watson IoT PAL, we're unable to set width on <th> elements. We need the ref to these elements to avoid imperatively setting the width from event callbacks (event.target.closest('th') for example).

TableHeader is a function component so we're unable to use the ref attribute on it. We're unable to wrap these with a container without breaking table semantics, and the styling for table headers as well.

Justification

Multiple Watson IoT products require the use of resizable columns.

Specific timeline issues / requests

This work is in progress already. I'd like to get this in ASAP to avoid reimplementing TableHeader ourselves.

Available extra resources

I can submit a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants