Skip to content

Column pinning inconsistence #4906

@paweljurczynskiflyr

Description

@paweljurczynskiflyr

Column pinning inconsistency

I'm trying to implement stickiness of table columns. Something similar to https://www.npmjs.com/package/react-table-sticky but for the current version.

I was trying to define position: sticky and manipulate left and right properties based on that where given column is placed.

But it seems like if I split one section into two (name section on the screenshot) I cannot "set" "Name" section to the right because it has ALWAYS set "left", even if I split that into two sides.

Why is that?

Is there other option to have "sticky" functionality? Like here: https://codesandbox.io/s/sweet-cori-gl81g

Your minimal, reproducible example

https://tanstack.com/table/v8/docs/examples/react/column-pinning

Steps to reproduce

  1. Go to docs page
  2. Click on "Last Name" right arrow.
  3. Look at the "Name" section on the right, it has arrow like it was pinned to the left, but is on the right.

Expected behavior

I expect each section, even if its the same, should have own positioning ('left', 'right'). Currently one section has only one positioning, even if its split.

How often does this bug happen?

Every time

Screenshots or Videos

Zrzut ekranu 2023-06-9 o 09 17 18

Platform

macOS

react-table version

v8.9.1

TypeScript version

v4.9.5.

Additional context

No response

Terms & Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions