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

Unexpected cell selection behavior in tables #14904

Closed
SeniorSpielbergo opened this issue Apr 10, 2019 · 3 comments · Fixed by #16653
Closed

Unexpected cell selection behavior in tables #14904

SeniorSpielbergo opened this issue Apr 10, 2019 · 3 comments · Fixed by #16653
Assignees
Labels
[Block] Table Affects the Table Block [Type] Bug An existing feature does not function as intended

Comments

@SeniorSpielbergo
Copy link

Describe the bug
Cells in the table block seem to only accept selection when clicking in a specific area of the cell. Especially when writing longer texts, the issue becomes particularly apparent. The area seems to align with the part of the cell where the cursor appears when correctly selecting the cell.

To reproduce
Steps to reproduce the behavior:

  1. Create a table block with at least two cells.
  2. Add an example text to one of the cells. Especially when writing longer texts, the issue becomes particularly apparent (e.g., "Short example text to demonstrate unexpected behavior when selecting other cells in the created table. Short example text to demonstrate unexpected behavior when selecting other cells in the created table. Short example text to demonstrate unexpected behavior when selecting other cells in the created table.").
  3. Optionally activate the "Fixed width table cells" option. However, this option does not change the unexpected behavior.
  4. Select any of the other cells. Hovering with the mouse cursor over / clicking in different parts of the cell demonstrates that only a small area is actually accepting clicks to select the cell for editing. Compare with the areas highlighted in green and red in the attached Screenshot 1.

Expected behavior
As long as the user clicks somewhere in the rectangular area of a cell, it should not matter where the user clicks to select the cell for editing.

Screenshots
Screenshot 1: The green area seems to accept clicks by the user. The red area does not accept clicks by the user.
table_edit

Desktop

  • OS: Windows 10
  • Browser: Firefox 66.0.2 (64-bit)
  • Gutenberg 5.4
@SeniorSpielbergo SeniorSpielbergo changed the title Unexpected cell selection behavior in tables. Unexpected cell selection behavior in tables Apr 10, 2019
@youknowriad youknowriad added [Block] Table Affects the Table Block [Type] Bug An existing feature does not function as intended labels Apr 18, 2019
@jorgefilipecosta
Copy link
Member

Thank you for reporting this issue, I was able to reproduce the problem in the last version of Gutenberg 5.8.0.

@talldan
Copy link
Contributor

talldan commented Jul 18, 2019

There's also another report of this in issue #15661, now closed as a duplicate.

@talldan
Copy link
Contributor

talldan commented Jul 18, 2019

I have a fix for this in #16653

@talldan talldan self-assigned this Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Table Affects the Table Block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants