     if nextProps.status isnt @props.status and nextProps.status is 'add'
       @setState
         saveDisable: true
+        preDisable: true
         title: ''
         tags: []
         deck: ''

    @props.handleAddData title, deck
    @setState
      saveDisable: true
      deckChecked: [false, false, false, false]
      title: ''
      tags: []

        if deck
          flag = true
          break
      saveDisable = true
      preDisable = true
      if flag
        preDisable = false
        if @state.title.length > 0
          saveDisable = false
      @setState
        deckChecked: deckChecked
        saveDisable: saveDisable
        preDisable: preDisable
        showPre: false
  render: ->
    <div className='tab-container'>
      <Button bsSize='small'
