Browse Source

chore: fix Table customized filter dropdown behavior when pressing enter (#38393)

close #38392
pull/38395/head
afc163 2 years ago
committed by GitHub
parent
commit
1d582551ec
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/table/demo/custom-filter-panel.md

2
components/table/demo/custom-filter-panel.md

@ -84,7 +84,7 @@ const App: React.FC = () => {
const getColumnSearchProps = (dataIndex: DataIndex): ColumnType<DataType> => ({
filterDropdown: ({ setSelectedKeys, selectedKeys, confirm, clearFilters, close }) => (
<div style={{ padding: 8 }}>
<div style={{ padding: 8 }} onKeyDown={e => e.stopPropagation()}>
<Input
ref={searchInput}
placeholder={`Search ${dataIndex}`}

Loading…
Cancel
Save