appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
34.64k stars 3.74k forks source link

[Bug]: Index treated as undefined even though it is defined in custom widget code. #30062

Open btsgh opened 10 months ago

btsgh commented 10 months ago

Is there an existing issue for this?

Description

When I attach an index to an event in a custom widget code, in the Events Property in the Edit mode of application, the index is treated as undefined

Steps To Reproduce

  1. On writing a custom code [code for button widget] for a Custom widget, define an index for trigger event.
  2. Click on the button and note event is triggered
  3. However, in the onButtonClick event, index is treated as undefined
Screenshot 2024-01-05 at 2 50 19 PM Screenshot 2024-01-05 at 2 51 23 PM

Public Sample App

No response

Environment

Release

Issue video log

No response

Version

Cloud

Nikhil-Nandagopal commented 8 months ago

Bumping this issue up to prod because it should have made it's way there by now if it was not fixed