palantir/blueprint

[EditableText] Add onEnter prop

Open

#4,426 建立於 2020年11月18日

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

描述

Environment

  • Package version(s): 3.35.0
  • Browser and OS versions: Any

Feature request

Add an onEnter callback to EditableText or extend the onConfirm callback with information on what triggered the confirm (enter or blur).

Examples

I'm using the EditableText on todo's. When the user hits enter I want to start another todo, but not when blurred.

貢獻者指南

[EditableText] Add onEnter prop · palantir/blueprint#4426 | Good First Issue