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

Cannot read properties of undefined (reading 'resizable') when hide tree column and expand/collapse the grid #2066

Open
lykiao opened this issue Sep 20, 2024 · 0 comments
Labels

Comments

@lykiao
Copy link

lykiao commented Sep 20, 2024

Describe the bug
If the original tree column is hidden and replaced with custom multiple columns to display tree nodes, an error is thrown when the expand/collapse method is executed by clicking on the custom column. The error is reported in the updateTreeColumnWidth method.

To Reproduce
Steps to reproduce the behavior:

  1. create tree Grid
  2. hide original tree column
  3. custom multiple columns to display tree nodes(excute expand/collapse method when click)
  4. See error: Cannot read properties of undefined (reading 'resizable')

Expected behavior
no error thrown when expand/collapse custom multiple columns tree nodes.
I think the if condition in method updateTreeColumnWidth should be changed to the following.
if (columnInfo && (columnInfo.resizable || columnInfo.autoResizing)) {...}
I have tested it in the dev tool and I feel that there should be no problem.
thank you ~

Screenshots
image

image

image

Desktop (please complete the following information):

  • OS: [windows 10]
  • Browser [chrome]
  • Version [latest]
@lykiao lykiao added the Bug label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant