-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
fix: Anvil toggleable widgets not working when native callbacks are used for AnvilFlexComponent #31125
Conversation
WalkthroughThe update introduces enhancements to the Anvil Layout Mode in a web application, focusing on improving the interaction with widget elements like switches and checkboxes. It adds test cases for validating widget clicks, updates widget locators, and introduces a new class for widget interaction. Additionally, it modifies Anvil components to handle click events more effectively, ensuring proper functionality in edit mode, and updates hook logic for better widget style management based on selection and visibility. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
/ok-to-test tags="@tag.Anvil" |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7901226816. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7901226816. |
/ok-to-test tags="@tag.Anvil" |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7911320409. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7911320409. |
Description
In last weeks effort of cleaning up Editor and Viewer parts of AnvilFlexComponent I had changed synthetic React callbacks to native ones #30780 .
This has resulted in regression of widget toggling of widgets like Checkbox, Switch, etc.
so changing them back to synthetic events by passing callbacks and props to the viewer part of AnvilFlexComponent.
PR fixes following issue(s)
Fixes # (issue number)
Media
Type of change
Testing
How Has This Been Tested?
Test Plan
Issues raised during DP testing
Checklist:
Dev activity
QA activity:
Test Plan Approved
label after Cypress tests were reviewedTest Plan Approved
label after JUnit tests were reviewedSummary by CodeRabbit
New Features
Bug Fixes
Tests
Refactor