Skip to content

Commit bbb0720

Browse files
committed
Cleanup
1 parent 5512416 commit bbb0720

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

packages/react-native-gesture-handler/src/v3/detectors/HostGestureDetector.web.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ const HostGestureDetector = (props: GestureHandlerDetectorProps) => {
131131
NativeGestureRole.Button
132132
);
133133
}
134+
135+
return () => {
136+
child.removeAttribute(NATIVE_GESTURE_ROLE_ATTRIBUTE);
137+
};
134138
}, [children]);
135139

136140
useEffect(() => {

packages/react-native-gesture-handler/src/web/handlers/NativeViewGestureHandler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,5 +251,6 @@ export default class NativeViewGestureHandler extends GestureHandler {
251251
public override reset(): void {
252252
super.reset();
253253
this.lastActiveHandlerData = null;
254+
this.role = null;
254255
}
255256
}

0 commit comments

Comments
 (0)