ソースを参照

fix: collapsible style (#267)

Xinyuan Wang 4 年 前
コミット
cdfce14592
1 ファイル変更1 行追加1 行削除
  1. 1 1
      packages/semi-ui/collapsible/index.tsx

+ 1 - 1
packages/semi-ui/collapsible/index.tsx

@@ -90,7 +90,7 @@ const Collapsible = (props: CollapsibleProps) => {
         const wrapperCls = cls(`${cssClasses.PREFIX}-wrapper`, className);
         return (
             <div style={wrapperstyle} className={wrapperCls} ref={ref}>
-                <div ref={setHeight}>{children}</div>
+                <div ref={setHeight} style={{overflow:'hidden'}}>{children}</div>
             </div>
         );
     };