Skip to content

Commit

Permalink
Merge pull request #325 from zhuokuang/feature/kz/fix-toast-hide
Browse files Browse the repository at this point in the history
fix: 修复toast组件函数式调用不能立即关闭的问题
  • Loading branch information
yuhaiyang1 authored Jan 16, 2024
2 parents 3e4dc16 + cddfaa5 commit bb63a6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/quarkd/src/toast/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ class QuarkToast extends QuarkElement {
}

hide = () => {
this.show = false;
setTimeout(() => {
this.show = false;
});
if (this.type === "loading") clearAllBodyScrollLocks();
};

Expand Down

0 comments on commit bb63a6d

Please sign in to comment.