antd-admin icon indicating copy to clipboard operation
antd-admin copied to clipboard

Table Component Custimized Filter Search Not Working onPressEnter

Open javierInspiren opened this issue 2 years ago • 3 comments

请酌情提供细节,并保持issue精简便于查阅

  1. 功能需求 => 详细说明
  2. Bug反馈
    2.1 简单描述下报错
    2.2 你期望什么结果
    2.3 如何操作导致的
    2.4 可提供运行环境信息
  3. 代码求助 => 可以提,未必及时答复 onPressEnter={() => handleSearch(selectedKeys, confirm, dataIndex)}table is not updating with the searched input on enter

javierInspiren avatar Jun 06 '22 19:06 javierInspiren

有没有最小可重现demo

superlbr avatar Jun 07 '22 09:06 superlbr

https://codesandbox.io/s/k0v9ny?file=/demo.js:1499-1566 this is the expected behavior. on the current version of ant design, it is just highlighting the text and triggering sorting by descending and ascending when the enter key is pressed.

javierInspiren avatar Jun 07 '22 14:06 javierInspiren

ah, test ok

superlbr avatar Jun 09 '22 09:06 superlbr