ng2-dragula
ng2-dragula copied to clipboard
drag and drop with custom filter search is not working
Here's my code:
<div>
<div class='wrapper'>
<div [dragula]='"second-bag"' style="display: inline-block;width:300px;border:2px solid black">
<input type="text" class="form-control" name="" placeholder="search" [(ngModel)]="friendlyName"/>
<li draggable *ngFor="let item of listBoxers| DataFilterPipe: friendlyName" class="list-group-item">{{item.friendlyName}}</li>
</div>
<div [dragula]='"second-bag"' style="display: inline-block;width:300px;border:2px solid black;vertical-align: top;min-height: 300px">
<ul class="list-group" >
</ul>
</div>
</div>
</div>
When I enter a text to filter out in container 1, the dropped items in container 2 also get cleared or filtered out
Please figure out how to do multiline code snippets on GitHub, we can't help if you show only rendered HTML.
Hint: three backticks. Edit: done for you.
Here I just wrote a possible answer for this little problem: https://github.com/valor-software/ng2-dragula/issues/539
But this need a little change see solution at my fork. Fork for filter example
Here example: Demo
has this been fixed in the latest update? please reply.