palantir/blueprint

Table hotkeys prevent newlines in text areas in cells

Open

#6,425 建立於 2023年10月3日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)TypeScript (20,263 star) (2,167 fork)batch import
P2Package: tableType: bughelp wanted

描述

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.

貢獻者指南