Tabs组件导致的页面出现隐藏的可点击对象

This commit is contained in:
tangly1024.com
2024-01-26 15:27:29 +08:00
parent c22084e8d4
commit ac661b23d5

View File

@@ -33,7 +33,7 @@ const Tabs = ({ className, children }) => {
{validChildren.map((item, index) => (
<section
key={index}
className={`${currentTab === index ? 'opacity-100 static h-auto' : 'opacity-0 absolute h-0'}`}>
className={`${currentTab === index ? 'opacity-100 static h-auto' : 'opacity-0 absolute h-0 pointer-events-none'}`}>
{item}
</section>
))}