shesha-framework
shesha-framework copied to clipboard
Table view selector does not refetch data when filter is bound to a nested data property
Describe the bug When using the table view filter with a evaluation bound to a nested property on the form data. When the nested property value is update the filter does not refetch data. It only fetches the first time the property is set and does not refetch when the value is changed.
Steps to reproduce the behavior:
- Go to 'https://functional-adminportal-test.azurewebsites.net/dynamic/TestModule/test-table-view-selector'
- Click on 'Person first name' textbox and start typing (the textbox is bound to person.firstName)
- The table fetches data, filtering the view based on the first letter typed into the text box but not for more letters typed. The view also does not clear when the textbox is cleared.
Expected behavior The datacontext should refetch for each change to the bound nested property. If the same experiment is done to a property directly on the data context. Eg data.firstName. The table view will refetch for each letter typed into the textbox. The same should happen when bound to a sub property eg: data.person.firstName
Screenshots
The filter bound to the sub property: