Skip to content

Commit

Permalink
fix: When drag and dropping elements in enhancedBootstrap mode the co…
Browse files Browse the repository at this point in the history
…lWrapper mouseenter could fire after dragging a field onto another field, this would cause the rowPlaceholders to be hidden and then shown with 1px height
  • Loading branch information
lucasnetau committed Oct 4, 2023
1 parent d606063 commit ea91499
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/js/form-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -1251,18 +1251,6 @@ function FormBuilder(opts, element, $) {

colWrapper.mouseenter(function (e) {
if (!gridMode) {
HideInvisibleRowPlaceholders()

//Only show the placeholder for what is above/below the rowWrapper
$(this)
.closest(rowWrapperClassSelector)
.prev(tmpRowPlaceholderClassSelector)
.removeClass(invisibleRowPlaceholderClass)
$(this)
.closest(rowWrapperClassSelector)
.next(tmpRowPlaceholderClassSelector)
.removeClass(invisibleRowPlaceholderClass)

gridModeTargetField = $(this)
gridModeStartX = e.pageX
gridModeStartY = e.pageY
Expand Down

0 comments on commit ea91499

Please sign in to comment.