Skip to content

Bug with grouped and sticky columns #424

Description

@egoipse

Hi,

There's a little bug on sticky columns when grouping some of them. The non-grouped columns next to sticky one also get sticky even when they were not set to be sticky.

Here's a repex:


library(reactable)
library(tidyverse)

reactable(
  mtcars |> 
    tibble::rownames_to_column("maker"),
  columns = list(
    maker = colDef(sticky = "left")
  ),
  columnGroups = list(
    colGroup(name = "A", columns = names(mtcars)[4:5]),
    colGroup(name = "B", columns = names(mtcars)[6:7]),
    colGroup(name = "C", columns = names(mtcars)[8:9])
  )  
)

I guess some workaround would be to group the non-grouped columns, set them and the hide their header through CSS. But meanwhile, this is the behaviour of non-grouped columns next to a sticky one.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions