ng2-dragula icon indicating copy to clipboard operation
ng2-dragula copied to clipboard

drag and drop with custom filter search is not working

Open AbGrS opened this issue 7 years ago • 3 comments

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

AbGrS avatar Jun 03 '17 15:06 AbGrS

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.

cormacrelf avatar Jun 04 '17 17:06 cormacrelf

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

Denfie avatar Dec 14 '17 15:12 Denfie

has this been fixed in the latest update? please reply.

amitmoondra avatar Dec 06 '18 16:12 amitmoondra