Skip to content

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

2 participants