Closed RanjitBShinde closed 2 months ago
Hi @RanjitBShinde. Thank you for your report.
To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel.
Hi
Login to Magento Admin
Click create page, add html element Button and add script tag and inside script add click button functionality
Goto PWA local fronend and check, button is displaying but click button functionality not working , it means script not working
Issue is producible in PWA
But
@glo85315 in luma theme it works. Issue is about PWA venia.
@adobe export issue to JIRA project PWA as Bug
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/PWA-3260 is successfully created for this GitHub issue.
Hi @RanjitBShinde , Thank you for reaching out to us regarding the JavaScript execution issue with Magento's PWA Venia storefront. After thorough investigation, we've discovered that React's security measures prevent the execution of JavaScript within static blocks, as it sanitizes HTML content, including script tags.
Unfortunately, due to this limitation within the React framework, we regret to inform you that we won't be able to proceed with your ticket as originally anticipated. We understand the importance of this functionality to you and apologize for any inconvenience this may cause.
If you have any further questions or concerns, please don't hesitate to reach out to us. We're here to help in any way we can.
As we have no update on this ticket for more than 14 days , Hence we are closing this ticket. Please feel free to reopen in case of any update.