mattermost-community / focalboard

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

Boards: JS errors when adding blank lines to a new comment on a card and navigating with cursors keys #4831

Open maltem-za opened 1 year ago

maltem-za commented 1 year ago

Summary

TypeError: Cannot read properties of undefined (reading 'getText')

Steps to reproduce

Mattermost Team Edition 7.8.3 with Boards 7.10.0 Desktop client 5.3.1 on Windows 10

  1. Open an existing card on a board
  2. Click in the field to add a comment
  3. Hit Shift+Enter twice
  4. Navigate up twice using the up-arrow key

Observed behavior (that appears unintentional)

The red "A JavaScript error has occurred" banner appears, but the UI continues to function normally. See attached log - both MatterPoll and Boards throw the error.

boards.log

amyblais commented 1 year ago

Opened https://mattermost.atlassian.net/browse/MM-52722.

srisri332 commented 11 months ago

Hello @amyblais , I raised a PR to fix this. Can you please assign this issue on my name?