Skip to content
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

[Bug]: Error on running CurrentItem and CurrentIndex at same time #9436

Closed
1 task done
vivekverma2312 opened this issue Nov 29, 2021 · 3 comments
Closed
1 task done
Assignees
Labels
Bug Something isn't working High This issue blocks a user from building or impacts a lot of users Javascript Product Issues related to users writing javascript in appsmith JS Evaluation Issues related to JS evaluation on the platform Needs Triaging Needs attention from maintainers to triage

Comments

@vivekverma2312
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Query on On click property
{{
Query1.log(currentItem);
Query1.log(currentIndex)
}}

Error: Error occurred while evaluating trigger: ReferenceError: currentItem is not defined.

Screenshot 2021-11-29 at 6 55 02 PM

Steps To Reproduce

Discord link: https://discordapp.com/channels/725602949748752515/760761686549463060/914857556097241089

Environment

Production

Version

Cloud

@vivekverma2312 vivekverma2312 added Bug Something isn't working Needs Triaging Needs attention from maintainers to triage List Widget Issues related to the list widget labels Nov 29, 2021
@github-actions github-actions bot added Widgets Product This label groups issues related to widgets UI Building Pod labels Nov 29, 2021
@rishabhrathod01 rishabhrathod01 added the JS Evaluation Issues related to JS evaluation on the platform label Nov 29, 2021
@github-actions github-actions bot added Javascript Product Issues related to users writing javascript in appsmith Actions Pod labels Nov 29, 2021
@jauniuseitmantis
Copy link

Hi, this seems to be issue not only with button. The same happens with input field if one tries to use currentItem or currentIndex in validation fields (regex, Valid, Error message). I suppose it is also a broader problem with more widgets when they are used in list

@Nikhil-Nandagopal Nikhil-Nandagopal added High This issue blocks a user from building or impacts a lot of users and removed Widgets Product This label groups issues related to widgets UI Building Pod List Widget Issues related to the list widget labels Jan 6, 2022
@ohansFavour
Copy link
Contributor

This should be fixed in this pr

@kamal0808
Copy link

kamal0808 commented Jul 10, 2022

@ohansFavour Is this fixed? I am experiencing this issue right now. Here's a public URL to the app. Try clicking on the plus icon.
https://app.appsmith.com/app/my-first-application/page1-62bb875020ae3225cef3448d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working High This issue blocks a user from building or impacts a lot of users Javascript Product Issues related to users writing javascript in appsmith JS Evaluation Issues related to JS evaluation on the platform Needs Triaging Needs attention from maintainers to triage
Projects
None yet
Development

No branches or pull requests

8 participants