 
     loadValue: (item) ->
       super(item)
-      @$el[0].defaultValue = @defaultValue
-      @$el.select()
+      @$input[0].defaultValue = @defaultValue
+      @$input.select()
 
     validateValue: (value) ->
       if isNaN(value)


    destroy: () -> @remove()

    focus: () -> @$el.focus()

    show: () ->



  class IntEditorView extends CellEditorView

    input: '<input type="text" class="bk-cell-editor bk-cell-editor-int" />'

    renderEditor: () ->
      @$input.spinner(step: @model.get("step"))
      @$input.focus().select()

    remove: () ->
      @$input.spinner("destroy")
      super()

    serializeValue: () ->
