Skip to content

Conversation

tomivirkki
Copy link
Member

Fixes #1729

@@ -235,10 +235,10 @@
}

_renderHeaderAndFooter() {
if (this.headerRenderer) {
if (this.headerRenderer && this._headerCell) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also considered having the check in

  • vaadin-grid's render() but from the grid's point of view, calling _renderHeaderAndFooter should be safe regardless of the column's state.
  • vaadin-grid-column's __runRenderer() but the function may expect the cell argument to be defined; it's the responsibility of the caller to make sure the arguments are valid. Otherwise, it wouldn't make sense to have a check for this.headerRenderer here either.

@tomivirkki tomivirkki force-pushed the fix-render-initially-hidden-column branch from 05211bf to 5f09803 Compare May 12, 2020 08:09
@tomivirkki tomivirkki merged commit f46c9ba into master May 14, 2020
@tomivirkki tomivirkki deleted the fix-render-initially-hidden-column branch May 14, 2020 06:38
web-padawan added a commit that referenced this pull request May 22, 2020
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

Successfully merging this pull request may close these issues.

Hidden column causing exceptions since 5.6.0
2 participants