Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: skeleton change will remove autofill popupmenu #2092

Merged
merged 2 commits into from
Apr 29, 2024

Conversation

yuhongz
Copy link
Contributor

@yuhongz yuhongz commented Apr 26, 2024

close #1752

@univer-bot univer-bot bot added the qa:untested This PR is ready to be tested label Apr 26, 2024
Copy link

codecov bot commented Apr 26, 2024

Codecov Report

Attention: Patch coverage is 0% with 9 lines in your changes are missing coverage. Please review.

Project coverage is 31.05%. Comparing base (4a360f7) to head (1d351d9).
Report is 5 commits behind head on dev.

Files Patch % Lines
.../src/views/operate-container/AutoFillPopupMenu.tsx 0.00% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #2092      +/-   ##
==========================================
+ Coverage   31.04%   31.05%   +0.01%     
==========================================
  Files        1207     1207              
  Lines       66151    66183      +32     
  Branches    13993    13995       +2     
==========================================
+ Hits        20534    20556      +22     
- Misses      45617    45627      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Apr 26, 2024

View Deployment

📑 Examples 📚 Storybook
🔗 Preview link 🔗 Preview link

@@ -97,6 +97,16 @@ export const AutoFillPopupMenu: React.FC<{}> = () => {
return disposable.dispose;
}, [forceUpdate, commandService]);

useEffect(() => {
const disposable = toDisposable(
sheetSkeletonManagerService.currentSkeleton$.subscribe((skeleton) => {
Copy link
Member

Choose a reason for hiding this comment

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

引起 skeleton change 的事件有很多,确认都要关闭吗?协同场景下会不会有问题?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

确实,协同带来的 skeleton change 应该只刷新位置,不会导致按钮关闭。这里我把它改成监听一些本地Mutation才导致关闭。

@oumomomo
Copy link

case1未修改,删除后填充入口仍未消失
image
2024_4_28 15_47_14 video.webm

@univer-bot
Copy link

univer-bot bot commented Apr 28, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

case1 has not been modified, and the filling entry has not disappeared after deletion.
image
2024_4_28 15_47_14 video.webm

@oumomomo oumomomo added qa:rejected and removed qa:untested This PR is ready to be tested labels Apr 28, 2024
@oumomomo oumomomo added qa:verified This PR has already by verified by a QA and is considered good enough to be merge and removed qa:untested This PR is ready to be tested labels Apr 28, 2024
@wzhudev wzhudev merged commit 5b80ca7 into dev Apr 29, 2024
9 checks passed
@wzhudev wzhudev deleted the yuhongz/fix-autofill-disapear-logic branch April 29, 2024 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
qa:verified This PR has already by verified by a QA and is considered good enough to be merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Delete content after filling, the expected drop-down filling menu disappears
4 participants