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

Tippy inside table not showing #56

Closed
zenkkor opened this issue Jun 9, 2017 · 2 comments
Closed

Tippy inside table not showing #56

zenkkor opened this issue Jun 9, 2017 · 2 comments

Comments

@zenkkor
Copy link

zenkkor commented Jun 9, 2017

Hi,

I am trying to use tippy inside table rows and am having no luck getting it to work. I am looking at this error: floating-ui/floating-ui#276 which seems to be what's happening to me. Any ideas how to bypass/fix this? I'd really love to use this plugin.

Thanks,
Rok

@atomiks
Copy link
Owner

atomiks commented Jun 9, 2017

Try changing the appendTo option and append it to a different element other than the body which has some form of layout position: relative, and maybe try adding popperOptions in the settings and change the preventOverflow setting (floating-ui/floating-ui#302)

@zenkkor
Copy link
Author

zenkkor commented Jun 9, 2017

Awesome, thank you @atomiks that did the trick!

For any other seekers in the future this is what I did to resolve it:

  1. I had my table wrapped in a block wrapper with class .table-responsive with overflow-x: auto to make the table responsive
  2. Added (to Tippy options): appendTo: document.querySelector('.table-responsive'),
  3. Added (to Tippy options):
popperOptions: {
    modifiers: {
        preventOverflow: {
            boundariesElement: 'viewport'
        }
    }
}

Works like a charm!

@zenkkor zenkkor closed this as completed Jun 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants