-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cellNav): notifyText incorrect if cellFilter had string literal p…
…arameter (#5404) * Fixing notify text if cellFilter takes string literal Calling getCellDisplayValue to get the correct filtered value, instead of getIntersectionValueFiltered, which did not return the correct value if the cellFIlter contained a string literal as an argument. This was the only place that function was being used, so it can be removed. It was probably carried forward from the ng-grid source, which had the same issue. * Remove getIntersectionValueFiltered This function was probably carried forward from ng-grid, and does not properly handle cellFilters with string literal arguments. It was only being used in one place, and was easily replaced with getCellDisplayValue, which does return the proper value.
- Loading branch information
1 parent
8dd5204
commit 08a9b68
Showing
2 changed files
with
1 addition
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
08a9b68
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have encountered an issue after this fix in my application. $parse() function is throwing error when cellNav is enabled.
Sample cell content: Testing - updated from command line. 1.5.7
Error Message:
Syntax Error: Token 'from' is an unexpected token at column 20 of the expression [Testing - updated from command line. 1.5.7] starting at [from command line. 1.5.7].
http://errors.angularjs.org/1.5.7/$parse/syntax?p0=from&p1=is%20an%20unexpected%20token&p2=20&p3=Testing%20%20-%20updatedNaNrom"