appsmith
appsmith copied to clipboard
[Bug]: ListWidget child button unable to handle JS code with new line char in the start
Is there an existing issue for this?
- [X] I have searched the existing issues
Description
With new line | Without new line |
---|---|
![]() |
![]() |
The issue seems to be due to the below logic in ListWidget.
value = `{{${parentProps.widgetName}.listData.map((currentItem, currentIndex) => {
return (function(){
return ${js};
})();
})}}`;
Steps To Reproduce
- Add List Widget.
- Add a button to the list.
- Paste the below JS code in the Disabled property
{{
(function(){return true;})()}}
- Notice this won't work
Public Sample App
No response
Version
1.7.0