palantir/blueprint

Table hotkeys prevent newlines in text areas in cells

Open

#6425 aperta il 3 ott 2023

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)TypeScript (2167 fork)batch import
P2Package: tableType: bughelp wanted

Metriche repository

Star
 (20.263 star)
Metriche merge PR
 (Merge medio 43g 10h) (27 PR mergiate in 30 g)

Descrizione

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.

Guida contributor