valor-software / ng2-dragula

Simple drag and drop with dragula
http://valor-software.com/ng2-dragula/
MIT License
1.91k stars 430 forks source link

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

Open adeel399 opened 1 year ago

adeel399 commented 1 year ago

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

Screenshots (optional)

If applicable, add screenshots to help explain your problem.

Versions (required)

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

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 commented 1 year ago

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 commented 1 year ago

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