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

ClearRows() should initialize with new NewStringData() #605

Open
JoeyFreeland-DojoFive opened this issue Aug 29, 2024 · 0 comments
Open

Comments

@JoeyFreeland-DojoFive
Copy link

Describe the bug
The ClearRows() method of a table sets the data to nil, but in the New() function to create a new table model, it is set to NewStringData(). Therefore if you want to clear a table of all its rows, you will not be able to add rows later. Rows will only be appended if the type of the internal data is StringData, which is not true after calling ClearRows().

Source Code
table.go

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

1 participant