Skip to content

Commit

Permalink
Merge pull request #1811 from tangly1024/fix/bug-in-tabs-component
Browse files Browse the repository at this point in the history
Tabs组件导致的页面出现隐藏的可点击对象
  • Loading branch information
tangly1024 authored Jan 26, 2024
2 parents c22084e + ac661b2 commit 5fa4f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
))}
Expand Down

0 comments on commit 5fa4f2e

Please sign in to comment.