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

Using the Editor option on a column removes the resize handle after editing a cell #4544

Open
Donnelly-Earley opened this issue Jul 18, 2024 · 1 comment
Labels
Possible Bug A possible bug that needs investigation

Comments

@Donnelly-Earley
Copy link

Donnelly-Earley commented Jul 18, 2024

Describe the bug
When the "editor" field in the column definition is set and the "resizable" field is set to true, editing a cell will remove the resizable handle from the right of that cell.

Tabulator Info
6.2

Working Example
https://jsfiddle.net/c3yL957o/

To Reproduce
A step by step guide to recreate the issue in your JS Fiddle or Codepen:

  1. Open the JS Fiddle above.
  2. Edit a cell in the "Name" column.
  3. After editing, hover your cursor over to the right side of the cell where a resize handle should be.
  4. No handle is there to resize the column from that cell's right border.

Expected behavior
The resize handle should still show and be usable after editing a cell.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Windows 11
  • Firefox is what I test in
  • v128

Smartphone (please complete the following information):
I am only testing in desktop browser.

Additional context
I noticed in the inline style of the affected resize handle is gone after editing that cell, whereas the height is set beforehand when the table is rendered.

@Donnelly-Earley Donnelly-Earley added the Possible Bug A possible bug that needs investigation label Jul 18, 2024
@Donnelly-Earley
Copy link
Author

EDIT: I wanted to add that this can be fixed with a table redraw once the cell is edited like so:
table.on('cellEdited', function(){ table.redraw(); });

However, it would still be nice to not have to do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Possible Bug A possible bug that needs investigation
Projects
None yet
Development

No branches or pull requests

1 participant