     tidyTriggerGroups = (triggerGroups) ->
         $(triggerGroups).hide()
         $('.fb-cell-editor').append(triggerGroups)
-        lastPositionTriggers = null
 
     Builder.mouseEntersGridTdEvent.subscribe ({triggers, triggerGroups, gridTd}) ->
         gridTdId = gridTd.id
+        lastTriggerGroups = triggerGroups
         lastPositionTriggers = ->
             # Move cell editor controls under this td
             gridTd = YD.get gridTdId


$ ->

    # Save reference to last operation that positioned the triggers
    lastPositionTriggers = null

    # Create a div.fb-hover inside the td, if there isn't one already

    # See: https://github.com/orbeon/orbeon-forms/issues/44
    Builder.mouseExitsGridTdEvent.subscribe ({triggerGroups, gridTd}) ->
        tidyTriggerGroups(triggerGroups)
        lastPositionTriggers = null

    # Change current cell on click on trigger
    Builder.triggerClickEvent.subscribe ({trigger}) ->
