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

Text selection in formatted cells no possible when movableRows is true #4667

Closed
Autoflow opened this issue Jan 16, 2025 · 1 comment
Closed
Labels
Possible Bug A possible bug that needs investigation

Comments

@Autoflow
Copy link

Hi all,
i activated movable rows and input formatters together. When i try to select text in an input or textarea cell this is not possible.
i am using tabulator 6.3

Working example: JS Fiddle

To reproduce:

  • activate movableRows:true
  • add a formatted cell like input or textarea
  • edit cell contents
  • try to select cell contents

Expected behavior
Cell content should be selected.

Desktop:

  • Debian 11
  • Firefox 128.6.0esr
  • Google Chrome 116.0.5845.179
@Autoflow Autoflow added the Possible Bug A possible bug that needs investigation label Jan 16, 2025
@olifolkerd
Copy link
Owner

Hey @Autoflow

Thanks for the headsup, that is because the table has no way to know if you are trying to drag a row or select the contents. If you need this functionality you should use a row handle to restrict where a user can move a row.

var tab = new Tabulator("#tabulator",{
  index: "ID",
  data: records,
  movableRows:true,
  rowHeader:{headerSort:false, resizable: false, minWidth:30, width:30, rowHandle:true, formatter:"handle"},
  columns: [
    {title: "ID", field: "ID", width: 50 },
    {title: "Name", field: "Name", width: 100 },
    {title: "Text", field: "Status", width: 50,
      formatter: "textarea",
      editor: "textarea",
     
    }
  ]
});

Cheers

Oli :)

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

2 participants