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

Move current location inside input #409

Merged
merged 13 commits into from
Dec 6, 2024
Merged

Move current location inside input #409

merged 13 commits into from
Dec 6, 2024

Conversation

karussell
Copy link
Member

@karussell karussell commented Dec 5, 2024

Fixes #408.

It also improves the code as it removes a workaround (myMarkerRef) and consistently calls e.preventDefault for all the buttons like clear, close, current locations and autocomplete to avoid that the onBlur causes the input to lose the focus and then hide the button, which would make a click impossible. Furthermore there is no longer code in onBlur that depends on isSmallScreen.

This also fixes a bug in current master for the mobile view:

  • write text in input
  • press "ESC"
  • input still has focus => writing text will now break the UI

Also ensure that:

  • write text in input
  • press "ENTER" for a specific item
  • press "TAB" - now no new geocoding request should be made

@karussell karussell modified the milestones: 0.7, 0.8 Dec 6, 2024
@karussell karussell added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Dec 6, 2024
@karussell karussell merged commit f7d073f into master Dec 6, 2024
2 checks passed
@karussell karussell deleted the move_curr_loc_inside branch December 6, 2024 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

move current location into input
1 participant