 
     clear_and_focus_search_input: ->
         @props.clear_search()
-        @setState(selected_items:'')
+        @setState(selected_items:[])
         @refs.search_input.clear_and_focus_search_input()
 
     search_button: ->

        return directories

    submit_selected: (path_list) ->
        @props.add_folders(path_list)
        @clear_add_search()

    clear_add_search: ->

                when 0 then "Select #{@props.item_name} above"
                when 1 then "Add selected #{@props.item_name}"
                else "Add #{num_items_selected} #{@props.item_name}s"
        <Button disabled={num_items_selected == 0} onClick={@add_button_clicked}><Icon name="plus" /> {btn_text}</Button>

    render: ->
        <div>
