       defaultValue  : value
 
   removeHiddenInputItem:(name)->
-    @hiddenInputs[name].remove()
+    delete @hiddenInputs[name]
 
   addSelectedItem:(name,data)->
     {selectedItemClass} = @getOptions()

          sibling.id isnt id
      JsPath.setAt form.getCustomData(), path, collection
    else
      @removeHiddenInputItem path.join('.')
    @removeSelectedItemData data
    @selectedItemCounter--
    item.destroy()
    @emit 'ItemListChanged'

  rearrangeInputWidth:()->
    # mainView = @getView()

      if item.getOptions().userInput is not ""
        @selectedItemCounter++
    else
      @addHiddenInputItem path, itemValue

    @addSelectedItemData data
    @addSelectedItem itemName, data
