       @onSave = options.save || $.noop
       @onPreview = options.preview || $.noop
 
-      @expand_all_multioptions = null
+      @expand_all_multioptions = () -> @$('.survey__row:not(.survey__row--deleted) .card--expandedchoices:visible').length > 0
 
       $(window).on "keydown", (evt)=>
         @onEscapeKeydown(evt)  if evt.keyCode is 27

      @$el.removeClass("survey-editor--loading")
      @

    expandMultioptions: ->
      $expand_multioptions = @$(".js-expand-multioptions--all")
      if @expand_all_multioptions
        @expand_all_multioptions = false
        @$(".card.card--selectquestion").removeClass("card--expandedchoices")
        $expand_multioptions.html($expand_multioptions.html().replace("Collapse", "Show"));
      else
        @expand_all_multioptions = true
        @$(".card.card--selectquestion").addClass("card--expandedchoices")
        $expand_multioptions.html($expand_multioptions.html().replace("Show", "Collapse"));

    getItemPosition: (item) ->
      i = 0


      @survey.forEachRow(fn, includeErrors: true, includeGroups: true, flat: true)

      @set_multioptions_label()

      null_top_row = @formEditorEl.find(".survey-editor__null-top-row, .survey-editor__message").removeClass("expanded")

      if isEmpty and @features.multipleQuestions
