TIPOFF / addresses

Laravel Package to manage addresses & interact with Address API
MIT License
0 stars 2 forks source link

Update again domestic address javascript component #72 #75 [TGER-140] #141

Closed devjk1 closed 3 years ago

devjk1 commented 3 years ago

to use

<div class="flex justify-center">
    <div class="w-1/2">
        @include ('addresses::domestic-address-search-bar-javascript')
        <form 
            method="POST"
            action="{{ route('submit-form') }}" 
        >
            @csrf
            @include ('addresses::domestic-address-search-bar-fields-javascript')
            <button type="submit">Submit</button>
        </form>
    </div>
</div>

image image

The biggest problem is that, like the Livewire component, Google returns partial addresses. After researching, many users are having this problem without a fix. Even though they claim when types=address, "Generally, you use this request when you know the user will be looking for a fully specified address." image image

We should validate on the frontend, that query starts with a number, like I did with the Livewire version.