Skip to content

Commit

Permalink
fix(popup): display should not trigger the scrollview to update (#2773)
Browse files Browse the repository at this point in the history
* fix(popup): display should not trigger the scrollview to update

* fix: test error
  • Loading branch information
oasis-cloud authored Nov 21, 2024
1 parent ad9ba90 commit d107304
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/packages/popup/popup.taro.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import React, {
FunctionComponent,
useState,
useEffect,
ReactElement,
ReactPortal,
ReactNode,
ReactPortal,
useEffect,
useState,
} from 'react'
import { createPortal } from 'react-dom'
import { CSSTransition } from 'react-transition-group'
import classNames from 'classnames'
import { Close } from '@nutui/icons-react-taro'
import { EnterHandler, ExitHandler } from 'react-transition-group/Transition'
import { View, ITouchEvent } from '@tarojs/components'
import { ITouchEvent, View } from '@tarojs/components'
import {
OverlayProps,
defaultOverlayProps,
OverlayProps,
} from '@/packages/overlay/overlay.taro'
import Overlay from '@/packages/overlay/index.taro'
import { ComponentDefaults } from '@/utils/typings'
Expand Down Expand Up @@ -271,7 +271,7 @@ export const Popup: FunctionComponent<

const renderNode = () => {
return (
<>
<View catchMove>
{overlay ? (
<Overlay
style={overlayStyles}
Expand All @@ -283,8 +283,8 @@ export const Popup: FunctionComponent<
onClick={onHandleClickOverlay}
/>
) : null}
<>{renderPop()}</>
</>
{renderPop()}
</View>
)
}

Expand Down

0 comments on commit d107304

Please sign in to comment.