jquery-locationpicker-plugin icon indicating copy to clipboard operation
jquery-locationpicker-plugin copied to clipboard

onlocationnotfound not working ?

Open gordielachance opened this issue 9 years ago • 1 comments

Hi and thanks for this handy plugin !

Seems the onlocationnotfound event does not work :

        onlocationnotfound: function(locationName) {
            alert("not found");
        }

does nothing. Any idea ?

gordielachance avatar Nov 08 '16 10:11 gordielachance

Hi @gordielachance!

It's very strange. I have been try to re-create that issue, but it's work fine. I can advice you first of all make sure that you enable autocomplete (property enableAutocomplete in locationpicker options) and check version of plugin;

Here is options of my similar locationpicker

$('#test').locationpicker({
    inputBinding: {
        locationNameInput: $('#test-address')
    },
    enableAutocomplete: true,
    onlocationnotfound: function(locationName) {
        alert("not found");
    }
});

test of locationnotfound

Sumragen avatar Nov 09 '16 18:11 Sumragen