Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy/Paste fixes #5953

Merged
merged 5 commits into from
Aug 2, 2024
Merged

Copy/Paste fixes #5953

merged 5 commits into from
Aug 2, 2024

Conversation

greg-schrammel
Copy link
Contributor

Fixes APP-####

What changed (plus any additional context for devs)

  • fixes output being overwritten on quote refetch after paste by setting inputMethod to the right field on paste
  • fixes dapp browser new tab and done buttons, by passing nothing/undefined to the fns args, now GestureHandler onPress calls the handler with the event and this event was being passed as arg to those functions, making they misbehave

Screen recordings / screenshots

What to test

Copy link
Contributor

@walmat walmat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I understand the change made to the GestureHandlerV1Button that prevents us from being able to pass a worklet function directly to the onPressWorklet prop.

Copy link
Member

@jinchung jinchung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding a note from Christian: test against when numbers have commas

@christianbaroni
Copy link
Member

I'm not sure I understand the change made to the GestureHandlerV1Button that prevents us from being able to pass a worklet function directly to the onPressWorklet prop.

+1, would rather we address the underlying issue making the extra wrapper necessary, if it is actually necessary currently

@greg-schrammel
Copy link
Contributor Author

I'm not sure I understand the change made to the GestureHandlerV1Button that prevents us from being able to pass a worklet function directly to the onPressWorklet prop.

+1, would rather we address the underlying issue making the extra wrapper necessary, if it is actually necessary currently

it is not being used so I removed the event arg on gesture handler v1 callbacks

Comment on lines -75 to +80
onStart: e => {
if (onPressStartWorklet) onPressStartWorklet(e);
onStart: () => {
if (onPressStartWorklet) onPressStartWorklet();
},
onActive: e => {
if (onPressWorklet) onPressWorklet(e);
if (onPressJS) runOnJS(onPressJS)(e);
onActive: () => {
if (onPressWorklet) onPressWorklet();
if (onPressJS) runOnJS(onPressJS)();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these e were not used anywhere

@jinchung jinchung self-requested a review August 2, 2024 18:50
Copy link
Member

@jinchung jinchung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌮

@jinchung jinchung merged commit f02a232 into develop Aug 2, 2024
6 checks passed
@jinchung jinchung deleted the copy-paste-fixes branch August 2, 2024 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants