palantir/blueprint

Cannot use Enter key in dialog/textarea spawned from Table

Open

#5,042 opened on Nov 29, 2021

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

Description

Environment

  • Package version(s): table 3.9.12, core 3.49.1
  • Operating System: windows
  • Browser name and version: firefox and chrome

Code Sandbox

https://codesandbox.io/s/blueprint-sandbox-forked-r06o8?file=/src/index.tsx

image

Actual behavior

Cannot insert new lines by typing Enter in textarea in dialog which is a child of a Table

It behaves as if the table intercepted the Enter key. All other keys seem to work normally. It is possible to insert new lines by pasting (Ctrl-V).

Expected behavior

Can use the Enter key in textarea of dialog which is a child of a Table

Possible solution

Contributor guide