-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Bootstrap feature updates #1482
Conversation
lucasnetau
commented
Nov 5, 2023
- Remove redundant checkSetupBlankStage() check and row creation. Changes in previous PRs made this redundant and the original code had an issue leaving a dangling row in the stage.
- Remove a redundant branch between dropping to a new row or dropping to a placeholder
- Add additional checkRowCleanup() after dropping controls. Mouse drag of controls could sometimes lead to placeholders not been cleanup and placing whitespace through the stage.
- Store the row ID in a data-row-id attribute. This allows CSS rules to display information like row name in a information panel above each row.
- Fallback to showing controlType: name in formBuilder when the label is blank. This improves UX of controls on the stage
…eck as droppingToNewRow, and simplify the logic.
…ack to 'type: name' for the control label to ensure a value is visible on the stage
src/js/form-builder.js
Outdated
$targetInsertWrapper = $(ui.item).parent() | ||
setupSortableRowWrapper(rowWrapperNode) | ||
syncFieldWithNewRow(colWrapper.attr('id')) | ||
checkRowCleanup() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need this if its called below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are correct. I've removed the redundant checkRowCleanup() here
just had the one question but this is good to merge when youre ready |
🎉 This PR is included in version 3.17.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |