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

[1.16.0+] disableVisualSelection doesn't work via cells method #5082

Closed
AMBudnik opened this issue May 7, 2018 · 8 comments
Closed

[1.16.0+] disableVisualSelection doesn't work via cells method #5082

AMBudnik opened this issue May 7, 2018 · 8 comments
Assignees
Labels
bug Regression Issues that were created while adding new changes to the source code Status: Released
Milestone

Comments

@AMBudnik
Copy link
Contributor

AMBudnik commented May 7, 2018

Description

Since v 1.16.0 we are not able to set disableVisualSelection via cell properties.
It works for the whole instance > http://jsfiddle.net/xb6bemq6/

Steps to reproduce

  1. Go to http://jsfiddle.net/aa93rdrx/ (1.16.0)
  2. Select any cell in column B

Result: Cell is selected
Expected: Cell should be selected.

setCellMeta demo

  1. Go to broken 1.16.0 demo > http://jsfiddle.net/zqr2gbws/
  2. Select cell 0,0

Result: Cell is selected
Expected: Cell should be selected like here http://jsfiddle.net/f2pxrdw4/ working 1.15.1.;

Your environment

  • Handsontable version: 1.16.0+
    Last working 1.15.1
  • Browser Name and version: Chrome 65
  • Operating System: Windows 10

Inform GR#14337

@AMBudnik AMBudnik added bug Regression Issues that were created while adding new changes to the source code labels May 7, 2018
@bigsweater
Copy link

It seems as though disableVisualSelection works only on the whole table -- it doesn't work at all for columns, either.

Here's the commit that introduced the bug, according to git bisect:

592eae3

Related issues: #4708

And a diff between the last good commit and first bad commit:

505846f...592eae3

@AMBudnik
Copy link
Contributor Author

Thank you for doing the investigation @bigsweater

@supra28
Copy link

supra28 commented Dec 16, 2019

@AMBudnik Any ETA on this?

@AMBudnik
Copy link
Contributor Author

The Roadmap for Q4/2019 is already full and we do not know (yet) what are plans for 2020, but regression type of bugs are usually those which has to be fixed first. Please stay tuned.

@AMBudnik
Copy link
Contributor Author

Works the same using v 8.0.0-beta 1
Demo https://codesandbox.io/s/misty-dawn-ooh7t

@wojciechczerniak wojciechczerniak added this to the January 2021 milestone Dec 10, 2020
@wszymanski wszymanski self-assigned this Jan 18, 2021
wszymanski added a commit that referenced this issue Jan 19, 2021
…election` for particular cell, not only the whole table & added extra test #5082
wszymanski added a commit that referenced this issue Jan 19, 2021
@wszymanski
Copy link
Contributor

wszymanski commented Jan 19, 2021

Since 1.16.0 there is also problem with option disableVisualSelection, also when it is set globally (for the whole table) just with current value (as an array's element or string; it's one from the possibilities mentioned in documentation). It's also regression.

Before

before.mp4

After

after.mp4

edit: There is similar or the same bug described by our user within #5869. I will fix it within the issue.

@aninde
Copy link
Contributor

aninde commented Mar 10, 2021

This bug has been fixed on v8.3.2.
Thankfully to the hard work of @wszymanski, we improved the operation of this functionality.

disableVisualSelection works at any level of the cascade settings, ie for the entire table, for specific cells in each columns or specific cells.

In this context, each cell has an association with their coordinates: x row and y columns, which may have X and Y headers.
As part of the cells option, we set a cell with the x and y coordinates whether it should highlight the header X and Y.

disableVisualSelection can be:

Screenshot 2021-03-10 at 15 24 05

Screenshot 2021-03-10 at 15 25 05

Screenshot 2021-03-10 at 15 25 14

Screenshot 2021-03-10 at 15 25 25

Tested on
macOS 11.2.2 (20D80) - Chrome 88.0.4324.192, Safari 14.0.3 (16610.4.3.1.4), Firefox 86.0 , Edge 89.0.774.48, Opera 74.0.3911.203
Windows 10 - Chrome 88.0.4324.192 , Edge 89.0.774.48, IE 11, Firefox 86.0.

@AMBudnik
Copy link
Contributor Author

Thank you for solving this case. We can close the issue as solved for v8.3.2 of Handsontable.

@bigsweater @supra28 if you'd be still experiencing this issue after updating to v8.3.2 please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Regression Issues that were created while adding new changes to the source code Status: Released
Projects
None yet
Development

No branches or pull requests

6 participants