         unedit = (event) ->
           return unless edit = editCell
           editCell = undefined
-          $(edit).children('[name=edit]').off()
-          return unless cell = edit.parentNode
-          cell.removeChild(edit)
+          cell = edit.parentNode
+          $(edit).remove()
+          return unless cell
           cell.classList.remove('editing')
           tooltips.clear()
 

          slot = slots[i]
          stop = slot.id == volume.top.id
          row = document.createElement('tr')
          rows[i]?.parentNode?.replaceChild(row, rows[i])
          rows[i] = row
          row.id = id + '_' + i
          row.data = i

          t = 0
          while (el = row.nextSibling) && el.data == i
            t++
            $(el).remove()

          el = row.firstChild
          while el
