Remove layout classes when one is added#1803
Conversation
|
Warning Rate limit exceeded@Crabcyborg has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 47 minutes and 0 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. WalkthroughThe changes in Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant FormidableAdminJS
User->>FormidableAdminJS: Trigger form field class change
FormidableAdminJS->>maybeRemoveLayoutClasses: Call with obj and variable
maybeRemoveLayoutClasses->>isALayoutClass: Check if class is a layout class
isALayoutClass-->>maybeRemoveLayoutClasses: Return boolean
maybeRemoveLayoutClasses-->>FormidableAdminJS: Finish removing layout classes
FormidableAdminJS->>maybeRemoveClasses: Call with beforeValue, removeClasses, and variable
maybeRemoveClasses-->>FormidableAdminJS: Return updated class string
FormidableAdminJS-->>User: Update form field with new classes
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 (
|
Related issue https://github.com/Strategy11/formidable-pro/issues/5103
This fixes the first item in the list, where selecting a layout class doesn't change the layout if there is already a class set.