Skip to content

Conversation

wanpan11
Copy link
Contributor

@wanpan11 wanpan11 commented Jun 5, 2024

新增 loading 字段
在异步加载数据场景下 当 loading=true 时不响应 Enter 事件

wanpan11 and others added 2 commits June 6, 2024 13:41
Co-authored-by: afc163 <afc163@gmail.com>
// loading skip
if (loading) {
return;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

需要 stopMeasure 么?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

应该不用吧 这里关掉的话 就需要重新输入才会搜索了(input 里的text就不完整了)

options,
open,
allowClear,
silent,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

怎么改成 silent 了?不是 loading 么?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loading 是 antd 中的,rc-mentions 里是没有 loading 态的

}

beforeEach(() => {
jest.useFakeTimers();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

把下面的 beforeEach 和 afterEach 挪上来把,反正也是 fakeTimer

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

把下面的 beforeEach 和 afterEach 挪上来把,反正也是 fakeTimer

done

@zombieJ zombieJ merged commit 39a078d into react-component:master Jun 6, 2024
@wanpan11 wanpan11 deleted the loading branch June 6, 2024 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mentions loading state is not disabling the input

3 participants