kartik-v / yii2-grid

Enhanced GridView with various utilities for Yii Framework 2.0
http://demos.krajee.com/grid
Other
557 stars 302 forks source link

Relations Gridview with no results - header prevents links to be clicked #981

Closed lowap closed 3 years ago

lowap commented 3 years ago

Prerequisites

Steps to reproduce the issue

  1. generate view with giiant, with relations tabs using kartik grid
  2. in case a relation doesn't have any actual related models, so the grid is empty

NOTE: as soon as there is one single related model in the grid, the problem doesn't exist anymore. In the base yii2 grid the problem doesn't exist as well. I'm using a very minimalistic basic gridview with an action column, and two data columns, without any fancy formatting.

Expected behavior and actual behavior

When I follow those steps, I see... I can't click on List All (related models), New (related model), Attach (related model) generated by giiant

I was expecting... To be able to click on these 3 buttons / links

Environment

Tested Browsers

Operating System

Libraries

Isolating the problem

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.