You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
danieldickison
changed the title
optionsText with a lambda value resolve the function argument
optionsText with a lambda value fails to resolve the function argument
Jul 13, 2021
Tests in #151 and it looks like lambda parameter lists aren't being evaluated at all at the moment, and multiple parameters fail to parse. I've been looking at parser.ts but haven't quite wrapped my head around how all the parts fit together.
@brianmhunt do you think you would be able to look into this soon? If not, I'll continue developing a fix in the parser over the next couple of days.
edit: the pull request now has a fix for this in it.
I tried a lambda (arrow-function) value for
optionsText
, following the knockout docs’ example, which uses afunction
value:This fails with:
Specifying the
optionsText
as a function reference does work:optionsText: formatUser
Demo: https://jsfiddle.net/danieldickison/az2on6h0/4/
The text was updated successfully, but these errors were encountered: