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

afterRowMove hook returns improper target parameter #4377

Closed
AMBudnik opened this issue Jul 7, 2017 · 4 comments
Closed

afterRowMove hook returns improper target parameter #4377

AMBudnik opened this issue Jul 7, 2017 · 4 comments

Comments

@AMBudnik
Copy link
Contributor

AMBudnik commented Jul 7, 2017

Description

The target parameter doesn't return a valid index

Steps to reproduce (target values)

  1. Drag any row below the table.

Demo

moving rows

http://jsfiddle.net/rzs1Lcom

Your environment

  • Handsontable version: 0.32.0
  • Browser Name and version: Chrome 59
  • Operating System: Windows 10

[Gr #7220, forum #1192, Gr #7188, Gr #7535]

@wszymanski
Copy link
Contributor

wszymanski commented Aug 2, 2017

I divide this problem into two smaller. I change ticket name and description.

@wszymanski wszymanski changed the title afterRowMove hook returns false data afterRowMove hook returns improper target parameter Aug 2, 2017
@wszymanski
Copy link
Contributor

wszymanski commented Aug 2, 2017

The second part of original ticket will be fixed within #4444.

@krzysztofspilka
Copy link
Member

krzysztofspilka commented Sep 6, 2017

@wszymanski Failed test results (based on visual indices on the front-end and values printed in the web console in result):

  1. Move 3 before 1 => index 0 (Correct)
  2. Move 3 before 2 => index 1 (Correct)
  3. Move 2 after 3 => index 3 (Wrong)

screen shot 2017-09-06 at 11 49 27

Demo: http://jsfiddle.net/rzs1Lcom
Version: 1.13.1, localhost

@wszymanski
Copy link
Contributor

wszymanski commented Sep 6, 2017

Seems that moving rows from top to bottom don't work. Will be fixed within #4501 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants