Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloning sortable items #39

Open
andreyshedko opened this issue Mar 9, 2016 · 1 comment
Open

Cloning sortable items #39

andreyshedko opened this issue Mar 9, 2016 · 1 comment

Comments

@andreyshedko
Copy link

Hi!
This could be that I did something wrong, but I suppose that it's bug. Sometime, when I'm draging sortable items, it's cloning - item left on its position plus adding new one.
Here is markup:

<div dnd-container dnd-sortable-list="properties.form_values">
    <div flex layout="column" style="overflow: auto; height: 100%;" ng-repeat="value in properties.form_values track by $index" dnd-sortable dnd-on-sortend="onSortEnd()">
        <md-input-container layout="row" class="md-icon-float md-icon-right md-block flex-box" ng-mouseover="hovering=true" ng-mouseleave="hovering=false">
            <input type="text" ng-model="value" ng-change="onChangeFieldValue($index, value)" />
            <md-icon md-font-set="material-icons" ng-show="hovering" ng-click="onDeleteFieldValue($index, $event)">clear</md-icon>
            <md-icon class="ng-isolate-scope" md-font-set="material-icons" ng-show="hovering" style="cursor: move;">format_line_spacing</md-icon>
        </md-input-container>
    </div>
</div>

P.S. I'm using angular 1.4.8
P.P.S. I'm Russian, but it's international web site, so let's use English - it will make search of issue for other developer easier.

@Tuch
Copy link
Owner

Tuch commented Mar 9, 2016

@andreyshedko, do you have jsfiddle/jsbin/etc example that demonstrates this bug? It would be very helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants