You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
my second issue today :)
I experienced a potentially unwanted behaviour in GeoBookmark when an ol.Map is nested within a html form.
I created a jsfiddle for you with a minimal example which is based on your GeoBookmark example.
If one adds a new Bookmark via pressing the enter key the first entry in the bookmark list is being deleted. If the bookmark list is empty it is impossible to add a new bookmark (with the enter key) due to the newly added bookmark being deleted right after adding it. The issue seems to be that pressing enter while being in html form triggers the delete button in the bookmarks list. Adding a hidden submit button to the form which is doing nothing prevents this behaviour.
(Also it would be nice to be able to customize the text for the delete button which currently is 'Suppr.')
Thanks!
The text was updated successfully, but these errors were encountered:
Hey,
my second issue today :)
I experienced a potentially unwanted behaviour in GeoBookmark when an ol.Map is nested within a html form.
I created a jsfiddle for you with a minimal example which is based on your GeoBookmark example.
If one adds a new Bookmark via pressing the enter key the first entry in the bookmark list is being deleted. If the bookmark list is empty it is impossible to add a new bookmark (with the enter key) due to the newly added bookmark being deleted right after adding it. The issue seems to be that pressing enter while being in html form triggers the delete button in the bookmarks list. Adding a hidden submit button to the form which is doing nothing prevents this behaviour.
(Also it would be nice to be able to customize the text for the delete button which currently is 'Suppr.')
Thanks!
The text was updated successfully, but these errors were encountered: