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

b-table sticky-columns don't work properly unless both `responsive` & `sticky-header` props are set #4354

Closed
dflock opened this issue Nov 7, 2019 · 2 comments · Fixed by #4356, mariazevedo88/hash-generator-js#17 or CloudsdaleGroup/AnimFM#3
Assignees

Comments

@dflock
Copy link
Contributor

@dflock dflock commented Nov 7, 2019

Describe the bug

b-table sticky-columns don't work properly unless both responsive & sticky-header props are set

Steps to reproduce the bug

Here's a codepen that shows this happening: https://codepen.io/duncanlock/pen/gOOzJXO

Expected behavior

The docs say that either will work, but both seem to be required:

Sticky columns

Columns can be made sticky, where they stick to the left of the table when the table has a horizontal scrollbar. To make a column a sticky column, set the stickyColumn prop in the field's header definition. Sticky columns will only work when the table has either the sticky-header prop set and/or the responsive prop is set.

Versions

Libraries:

  • BootstrapVue: 2.0.4
  • Bootstrap: 4.3.1
  • Vue: 2.6.10

Environment:

  • Device: PC
  • OS: Ubuntu Linux 16.04.6 LTS x86_64
  • Browser: Chrome
  • Version: 75

Demo link

https://codepen.io/duncanlock/pen/gOOzJXO

@tmorehouse

This comment has been minimized.

Copy link
Member

@tmorehouse tmorehouse commented Nov 7, 2019

It appears that the classes are not being applied to the tbody sticky column cells.

There might have been a regression since this feature was introduced.

@tmorehouse tmorehouse self-assigned this Nov 7, 2019
tmorehouse added a commit that referenced this issue Nov 7, 2019
…ve but has sticky headers (fixes #4354)
tmorehouse added a commit that referenced this issue Nov 8, 2019
…ve but has sticky headers (fixes #4354) (#4356)
@tmorehouse

This comment has been minimized.

Copy link
Member

@tmorehouse tmorehouse commented Nov 13, 2019

BootstrapVue v2.1.0 has been released, which has a fix for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.