Skip to content

Commit 749f17f

Browse files
authored
Merge pull request #29366 from graylewis/UserCurrentLocationButton-onClick-fix
User current location button onClick fix
2 parents 2b4e1c6 + 6ea1a12 commit 749f17f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/UserCurrentLocationButton.js

+2
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ function UserCurrentLocationButton({onLocationFetched, onLocationError, onClick,
8888
onPress={getUserLocation}
8989
accessibilityLabel={translate('location.useCurrent')}
9090
disabled={isDisabled}
91+
onMouseDown={(e) => e.preventDefault()}
92+
onTouchStart={(e) => e.preventDefault()}
9193
>
9294
<Icon
9395
src={Expensicons.Location}

0 commit comments

Comments
 (0)