Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Sorting doesn't work for the first time.. After page refresh, works fine #510

Description

@Tanisha27

I am using ui-sortable in Meteor web app. Loading dynamic data in the horizontal grid and using ui-sortable to sort the grid columns. But its not working properly. But, after I refresh the page, it starts working properly until I hard reload the page.

Code:
js file

this.sortableOptions = {
			handle: '> .move-handle',
			scroll: true,
			'ui-floating': 'auto',
			cursor: "pointer",
			containment: "parent"
}

html file

<ul ng-model="editEvaluation.evaluation.sections" ui-sortable="editEvaluation.sortableOptions" class="sortable-list agile-list" >
        <li ng-repeat="section in editEvaluation.evaluation.sections track by $index" class="sections-list" ng-class="{'selected': section.selected}">
                 <div class="move-handle">
                          <i class="fa fa-bars"></i>
                  </div>
                  <div class="section-detail" ng-click="editEvaluation.selectSection($index)">
                           //section
                  </div>
          </li>
 </ul>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions