Skip to content

Commit

Permalink
TableView removeColumn using id
Browse files Browse the repository at this point in the history
removeColumn did not work because it used the text and not the id property of the column.
  • Loading branch information
AdrianV authored Dec 18, 2024
1 parent 7ede5fa commit 2305759
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions haxe/ui/containers/TableView.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1002,10 +1002,11 @@ private class RemoveColumn extends Behaviour {
return null;
}
for (c in header.findComponents(Column)) {
if (c.id == null) {
final id = c.id;
if (id == null) {
continue;
}
if (c.text == param) {
if (id == param) {
header.removeComponent(c);
break;
}
Expand Down

0 comments on commit 2305759

Please sign in to comment.