-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
data binding to $index fails #4260
Comments
@IntranetFactory thanks for reporting. I can repro on adaptivecards.io/designer, but not locally from compiled code. I believe I fixed this bug some time ago and it's likely the web site hasn't been updated yet. @matthidinger? |
@dclaux do you know the issue# to help track the fix? |
@IntranetFactory as far as I can tell from the screenshot, you are not in preview mode, so it indeed won't work. But anyway, I am not sure a package with the fix has been published yet. The locally compiled code doesn't have the problem. |
@shalinijoshi19 sorry, I don't. I believe it was part of a bigger set of changes. |
@IntranetFactory we recently released the latest version of the designer which should have these fixes - can you please try the latest version at https://www.npmjs.com/package/adaptivecards-designer and let us know if you continue to see this issue? Thanks! |
It works now. Thank you. |
🎉 Handy links: |
I use the following card definition in the online designer. $index in
"$when": "${$index < 3}",
works as expected, the 4th item is not shown. But the $index in"l${$index+1} = ${id}
doesn't work, $index is always 0.How can I use the $index of the current element in my expression?
actual result:
expected result:
l1 = l1
l2 = l2
l3 = l3
The text was updated successfully, but these errors were encountered: