sshahine / JFoenix

JavaFX Material Design Library
MIT License
6.27k stars 1.05k forks source link

JFXTreeTableView predicate not working correctly on items added #1237

Open m0squito opened 2 years ago

m0squito commented 2 years ago

I have a JFXTreeTableVIew and a toggle button with a change listener for the latter that sets a new predicate of the table depending on the button's selected property value. Everything works as expected with the data initially loaded - the toggle button acts as a filter on/off button for the table view. However, when new items are dynamically added to the table (via observable list associated with the root), the predicate no longer holds and all items are shown. Is there a way to force the table to reevaluate the predicate and not show newly added items that would be rejected by the predicate?