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

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 this issue Nov 21, 2023 · 2 comments

Comments

@adeel399
Copy link

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 adeel399 changed the title As i drag and drop i cant get that exact array , targetmodel or source model give me different array As i drag and drop i cant get that exact array , i found that its only happen when there is multiple same letter Nov 22, 2023
@adeel399
Copy link
Author

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
Copy link
Author

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

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

1 participant