Skip to content
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

Merged
merged 6 commits into from
Nov 7, 2023
Merged

Conversation

lucasnetau
Copy link
Collaborator

  • 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

$targetInsertWrapper = $(ui.item).parent()
setupSortableRowWrapper(rowWrapperNode)
syncFieldWithNewRow(colWrapper.attr('id'))
checkRowCleanup()
Copy link
Owner

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?

Copy link
Collaborator Author

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

@kevinchappell
Copy link
Owner

just had the one question but this is good to merge when youre ready

@lucasnetau lucasnetau merged commit d11e5ee into kevinchappell:master Nov 7, 2023
1 check passed
@lucasnetau lucasnetau deleted the bs-items branch November 7, 2023 22:51
Copy link

github-actions bot commented Nov 7, 2023

🎉 This PR is included in version 3.17.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants