mattermost-community / focalboard

Focalboard is an open source, self-hosted alternative to Trello, Notion, and Asana.
https://www.focalboard.com
Other
21.63k stars 1.93k forks source link

Bug: Unable to drag to select text in table view #4844

Open hmhealey opened 2 years ago

hmhealey commented 2 years ago

Steps to reproduce the behaviour

  1. Create or go to a board in table view
  2. Ensure that the view has an editable text column
  3. Attempt to drag to select text from within that column

Expected behaviour

The text is selected. Instead, the whole row is picked up and dragged, and if you drop it, it often gets moved even if you drop it in the same place you started.

At a higher level, I'd expect clicking and dragging the mouse to only trigger text selection as long as the cursor is within an editable textbox. I'd only expect the whole row to get dragged when first clicking outside of an editable field.

Edition and Platform

Additional context

This might be related to https://github.com/mattermost/focalboard/issues/1620, but I'm not sure if those components handle dragging/selection differently

wuwinson commented 2 years ago

Thanks for reporting @hmhealey!

Able to repro on Personal Desktop Mac edition:

https://user-images.githubusercontent.com/93531870/188735740-fcbdebb2-6f55-405c-94e6-48ed81872861.mov

Not able to repro on Community in MM Desktop App on Mac:

https://user-images.githubusercontent.com/93531870/188735047-f29626c5-9234-450c-b38d-84c6c5a4fb62.mov

hmhealey commented 2 years ago

Here's a recording I took in the MM desktop app since I do see it there as well. That's strange that it didn't repro for you. Perhaps it's something to do with where in the table the column is located?

https://user-images.githubusercontent.com/3277310/188955830-36a5d598-c747-4d75-8257-f5c40d83ba04.mov