React-data-grid: Cell Actions not working for the last rows

Created on 8 May 2019  ·  5Comments  ·  Source: adazzle/react-data-grid

  • Have you already searched for similar issues? Please help us out and double-check first!

  • Also, please don't be that person who deletes this template. It's here for a reason.

  • Thanks!


Which version of React JS are you using?

✅ Officially supported ✅

  • [x] v15.4.x

⚠️ Not officially supported, expect warnings ⚠️

  • [ ] v15.5.x
  • [ ] v15.6.x

☣️ Not officially supported, expect warnings and errors ☣️

  • [ ] v16.x.x

Which browser are you using?

✅ Officially supported ✅

  • [ ] IE 9 / IE 10 / IE 11
  • [ ] Edge
  • [x] Chrome

⚠️ Not officially supported, but "should work" ⚠️

  • [ ] Firefox
  • [ ] Safari

I'm submitting a ...

  • [x] 🐛 Bug Report
  • [ ] 💡 Feature Request

👋 Need general support? Not sure about how to use React itself, or how to get started with the Grid?
Please do not submit support request here. Instead see

https://github.com/adazzle/react-data-grid/blob/master/CONTRIBUTING.md


Issue Details

I'm not being able to open a cell action on the last rows. After the first time you click the scroll bar starts blinking (it opens and close the action menu automatically)

Follow the evidence (gif):
chrome-capture (1)

You can also see it happening through the official docs:
https://adazzle.github.io/react-data-grid/docs/examples/cell-actions

Please include:
- What the current behavior is
Whenever you try to access a cell action on the last few rows, it starts to blink and it's not possible to click on the actions

- What the desired behvaior is
Be able to click on the actions.

- (If Bug) Steps to reproduce the issue
- (If Feature) The motivation / use case for the feature

We especially love screenshots / videos of problems, and remember
The Best Issue Is A Pull Request™

Most helpful comment

Little css approach for those who facing this

.react-grid-Row:nth-child(n + 6) .rdg-cell-action-menu {
    top: 0;
    transform: translateY(-100%);
}

All 5 comments

Any thoughts on this? Facing the same problem.

+1 on this

Little css approach for those who facing this

.react-grid-Row:nth-child(n + 6) .rdg-cell-action-menu {
    top: 0;
    transform: translateY(-100%);
}

A small improvement that does the trick

.react-grid-Row:nth-last-child(-n + 6) .rdg-cell-action-menu {
  top: 0;
  transform: translateY(-100%);
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

markmus picture markmus  ·  4Comments

martinnov92 picture martinnov92  ·  3Comments

ryanwtyler picture ryanwtyler  ·  3Comments

localhosted picture localhosted  ·  4Comments

KalKhera picture KalKhera  ·  3Comments