palantir/blueprint

Table hotkeys prevent newlines in text areas in cells

Open

#6425 opened on Oct 3, 2023

View on GitHub
 (3 comments) (0 reactions) (0 assignees)TypeScript (20,263 stars) (2,167 forks)batch import
P2Package: tableType: bughelp wanted

Description

Environment

  • Package version(s): @blueprintjs/table: 5.0.12
  • Operating System: Mac OS (Intel)
  • Browser name and version: Chrome 117.0.5938.92

Code Sandbox

https://codesandbox.io/p/sandbox/strange-microservice-hgshms

Steps to reproduce

  1. Put a text area in a Cell in a Table2
  2. Try to add a newline to the text area by pressing enter

Actual behavior

Nothing happens

Expected behavior

A new line would be entered

Possible solution

Stop preventing defaults on enter keydown events that happen in the table.

Contributor guide