Просмотр исходного кода

:bug: 问答输入中文使用鼠标选词抽屉关闭

visuddhinanda 3 лет назад
Родитель
Сommit
7843824c8d
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      dashboard/src/components/comment/CommentBox.tsx

+ 1 - 2
dashboard/src/components/comment/CommentBox.tsx

@@ -46,9 +46,9 @@ const Widget = ({ trigger, resId, resType, onCommentCountChange }: IWidget) => {
       <Drawer
         title="Discussion"
         width={520}
-        closable={false}
         onClose={onClose}
         open={open}
+        maskClosable={false}
       >
         <CommentListCard
           resId={resId}
@@ -64,7 +64,6 @@ const Widget = ({ trigger, resId, resType, onCommentCountChange }: IWidget) => {
         <Drawer
           title="回答"
           width={480}
-          closable={false}
           onClose={onChildrenDrawerClose}
           open={childrenDrawer}
         >