Browse Source

fix: collapsible style (#267)

Xinyuan Wang 4 năm trước cách đây
mục cha
commit
cdfce14592
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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>
         );
     };