When placing the Geocoder component inside a form, the form cannot be submitted using the Enter key. This issue arises because the clear button lacks a type="button" attribute, causing it to default to type="submit". Consequently, it is triggered during form submission and cancels the submission within the _clear function.
When placing the Geocoder component inside a form, the form cannot be submitted using the Enter key. This issue arises because the clear button lacks a
type="button"
attribute, causing it to default totype="submit"
. Consequently, it is triggered during form submission and cancels the submission within the_clear
function.