Skip to content

Commit 8ef0c72

Browse files
authored
Change input element type from text to search (#447)
* Change input element type from text to search Fixes an issue on mobile Chrome where the user can't submit the search if a second input field exists further down the page. * Update CHANGELOG.md
1 parent 66fa849 commit 8ef0c72

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
### Features / Improvements 🚀
44

55
- Add localization for French https://github.com/maplibre/maplibre-gl-geocoder/pull/412
6+
- Fix mobile Chrome search by changing input type https://github.com/maplibre/maplibre-gl-geocoder/pull/447
67

78
### Bug fixes 🐛
89

lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ export default class MaplibreGeocoder {
466466
);
467467

468468
this._inputEl = document.createElement("input");
469-
this._inputEl.type = "text";
469+
this._inputEl.type = "search";
470470
this._inputEl.className =
471471
"maplibregl-ctrl-geocoder--input";
472472

0 commit comments

Comments
 (0)