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

As i drag and drop i cant get that exact array , i found that its only happen when there is multiple same letter

Open adeel399 opened this issue 1 year ago • 2 comments

REQUIRED: Before filing a bug report

Change each [ ] to [x] when you have done it.

Describe the bug (required)

I have a word that user need to drag drop its letter to make it right but after multiple drag and drop i get wrong aray from targetmodel
As user drag drop letter my view has different set of order but what i get from target is different

Its necessary that i get same aray as it on screen bcoz i have to compare its index with correct word ..

And i am not able to get screen list i have tried getting using id of element.

To Reproduce (required)

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

If your issue appears in a larger codebase and it you can't pin down why it is happening, please

  • Fork this StackBlitz template
  • Update it to the latest ng2-dragula
  • Modify it, and reproduce the issue
  • Add a link to it here.

Screenshots (optional)

If applicable, add screenshots to help explain your problem.

Versions (required)

Please state which versions of the following packages you have installed:

  • @angular/core: [e.g. 6.0.4]
  • ng2-dragula: [e.g. 2.0.0]

Browsers affected (optional)

Is this a bug in a particular browser? If so, it's unlikely that it's a problem with ng2-dragula. Instead, it is probably a bug in dragula.

Additional context (optional)

Add any other context about the problem here.

adeel399 avatar Nov 21 '23 18:11 adeel399

what my requirment is i have a array of word like "hello" etc so user have to drag drop each letter to make a correct word i am stuck when there is a word having multiple same letter for example "Hello or "worker" etc . if word has no same letter it word perfect but if not then after few attempts some how targetmodel not give corrent array order that user draged and drop

adeel399 avatar Nov 22 '23 17:11 adeel399

WhatsApp Image 2023-11-22 at 19 49 47_c342ccc9

adeel399 avatar Nov 22 '23 17:11 adeel399