Skip to content

Commit ba461ad

Browse files
authored
fix unable to preventDefault inside passive error (#153)
1 parent b776439 commit ba461ad

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/DrawerChild.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -567,11 +567,7 @@ class DrawerChild extends React.Component<IDrawerChildProps, IState> {
567567
className={`${prefixCls}-content`}
568568
ref={c => {
569569
this.contentDom = c as HTMLElement;
570-
}}
571-
onTouchStart={
572-
open && showMask ? this.removeStartHandler : undefined
573-
} // 跑用例用
574-
onTouchMove={open && showMask ? this.removeMoveHandler : undefined} // 跑用例用
570+
}}
575571
>
576572
{children}
577573
</div>

0 commit comments

Comments
 (0)