     @props.handleQueryChanged
       lang: @props.searchQuery.lang
       query: @constructCQPQuery(queryTerms)
+      headwordSearch: @props.searchQuery.headwordSearch
 
 
   constructCQPQuery: (queryTerms) ->

    @props.handleQueryChanged
      lang: @props.searchQuery.lang
      query: @constructCQPQuery(queryTerms)


  handleAddTerm: ->

window.CwbMultiwordInput = React.createClass
  propTypes:
    showRemoveRow: React.PropTypes.bool.isRequired
    hasHeadwordSearch: React.PropTypes.bool.isRequired
    searchQuery: React.PropTypes.object.isRequired
    corpus: React.PropTypes.object.isRequired
    handleQueryChanged: React.PropTypes.func.isRequired
