-
Notifications
You must be signed in to change notification settings - Fork 462
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Version
1.23.2
Link to Minimal Reproduction
表格是树形数据时候,搜索都可以复现
Steps to Reproduce
useEffect(() => {
if (!tableInstanceRef?.current) return;
searchRef.current = new SearchComponent({
table: tableInstanceRef?.current,
autoJump: true,
});
}, [tableInstanceRef?.current, tableData]);
const searchHandler = () => {
if (!searchRef?.current || !searchValue) return;
try {
searchRef?.current?.search(searchValue);
} catch (error) {
console.warn('Search failed:', error);
}
};
const nextClickHandler = () => {
if (!searchRef?.current || !searchValue) return;
searchRef?.current?.next();
};
const prveHandlerContext = () => {
if (!searchRef?.current || !searchValue) return;
searchRef?.current?.prev();
};
Current Behavior
如上图所示当我的数据是 树形 结构的时候,搜索会高亮一整行,匹配错误
如上图所示当我的数据是普通单层结构的时候,搜索结果高亮正常,且上下翻滚全部都正常
Expected Behavior
期望是表格树形状结构的时候 也能正确高亮和上下翻滚切换
Environment
- OS:
- Browser:
- Framework:Any additional comments?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working