geocodeearth / autocomplete-element

A custom element for use with the Geocode Earth Autocomplete API.
https://geocode.earth
MIT License
8 stars 1 forks source link

empty data attributes #20

Closed missinglink closed 2 years ago

missinglink commented 2 years ago

empty data attributes generate empty querystring params, eg:

<ge-autocomplete sources="" /> will add ?sources= to the querystring.

use of this library from templating is easier if the data attributes are always rendered in the HTML but only populated when required.

this ticket is to investigate solutions to detecting empty data attributes and avoiding generating querystring params.

mxlje commented 2 years ago

This has been fixed in core-js v0.0.8 and is included in the latest release v0.5.0.