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

Fix bug where select blurred on select for mobile #3678

Merged
merged 1 commit into from Mar 14, 2023

Conversation

norbye
Copy link
Member

@norbye norbye commented Mar 14, 2023

Description

When on mobile react-select would call onBlur on select. This caused the value to change, but very soon after that it would change back to the original value (empty for new fields/events)

The actual fix is only on the new line 141, the rest is improved types.

Result

Now it doesn't blur on select (which it didn't do on desktop and now doesn't on mobile either)

Testing

  • I have thoroughly tested my changes.

I have only tested it on the edit event view, but I assume that it will work the same way everywhere it is used.

It is not actually tested on mobile, only on chrome devtools, but the bug was there to begin with so I hope this will also resolve it for mobile.


Resolves ABA-328

@norbye norbye added review-needed Pull requests that need review bug-fix Pull requests that fix a bug labels Mar 14, 2023
@linear
Copy link

linear bot commented Mar 14, 2023

ABA-328 `react-select` does not work on mobile

This has been an issue for way to long and should be prioritised!

Copy link
Member

@LudvigHz LudvigHz left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@ingraso ingraso left a comment

Choose a reason for hiding this comment

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

🚀

Copy link
Member

@ivarnakken ivarnakken left a comment

Choose a reason for hiding this comment

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

Looks good! 🚀 Thanks a lot!!!

You may use ngrok (or something similar, but I don't remember what it's called - maybe localtunnel will work (?) ) to test if it works.
Or, I'm retarded, just use your local IP

@ivarnakken ivarnakken added approved Pull requests that have been approved and removed review-needed Pull requests that need review labels Mar 14, 2023
@norbye norbye merged commit f1bc7a3 into master Mar 14, 2023
@norbye norbye deleted the fix-react-select-mobile branch March 14, 2023 16:58
@norbye
Copy link
Member Author

norbye commented Mar 14, 2023

True, could've, but there were some issues getting my phone to connect to the backend 😢 Merged anyways as if it didn't fix the bug on mobile, it fixed the bug in devtools and that's kinda nice as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Pull requests that have been approved bug-fix Pull requests that fix a bug
Projects
None yet
4 participants