Open SparshithNR opened 2 weeks ago
Hello, @SparshithNR
onDisplayDataChanged
-action should be used to update initial values for fields like filterString
, currentPageNumber
, pageSize
etc.
Please check sources of https://onechiporenko.github.io/ember-models-table/v.5/plain-html/#/examples/query-params
So the idea is if value is passed in once, the consumer of EMT is responsible to handle it.
I'm submitting a ...
What is the current behavior? The
globalFilter
do not get updated when consumer of EMT passesfilterString
case, because of when theget filterString
is evaluated thethis.args.filterString
always exists. So we can never get the updated value in the filterStringNote: This is the same case for all the places where local
tracked
variable is used for tracking the state.pull the change or make the same changes to local clone from above. Visit: http://localhost:4201/#/examples/block-usage
Try to update the string. Put a debugger at the get and set for the filterString. https://github.com/SparshithNR/ember-models-table/blob/9a501ab8fb5a59135000278039f1c584d9155b5d/addon/components/models-table.ts#L334-L341
[Bug] What is the expected behavior? The
filterString
updates[Feature] What is the motivation / use case for changing the behavior?
none
[Support] What exactly you try to do? none
Please tell us about your environment:
ember-models-table
version: any versionember
version: any versionember-data
version: any versionember-cli
version: any versionnode
version: any versionnpm
oryarn
version: any versionOther information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
The fix is to change the how
_filterString
is being setup.or