mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
Merge pull request #1811 from tangly1024/fix/bug-in-tabs-component
Tabs组件导致的页面出现隐藏的可点击对象
This commit is contained in:
@@ -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>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user