Prevent coutry autocomplete

This commit is contained in:
Hillel Coren 2018-12-11 10:28:29 +02:00
parent 1cbb56b8df
commit e8142a9067
3 changed files with 4 additions and 0 deletions

View file

@ -96,6 +96,7 @@
{!! Former::text('postal_code')
->oninput(config('ninja.google_maps_api_key') ? 'lookupPostalCode()' : '') !!}
{!! Former::select('country_id')->addOption('','')
->autocomplete('off')
->fromQuery($countries, 'name', 'id') !!}
<div class="form-group" id="copyShippingDiv" style="display:none;">
@ -115,6 +116,7 @@
->oninput(config('ninja.google_maps_api_key') ? 'lookupPostalCode(true)' : '')
->label('postal_code') !!}
{!! Former::select('shipping_country_id')->addOption('','')
->autocomplete('off')
->fromQuery($countries, 'name', 'id')->label('country_id') !!}
<div class="form-group" id="copyBillingDiv" style="display:none;">

View file

@ -664,6 +664,7 @@
->data_bind("value: postal_code, valueUpdate: 'afterkeydown'") !!}
{!! Former::select('client[country_id]')
->label(trans('texts.country_id'))
->autocomplete('off')
->addOption('','')->addGroupClass('country_select')
->fromQuery($countries, 'name', 'id')
->data_bind("dropdown: country_id") !!}

View file

@ -67,6 +67,7 @@
{!! Former::text('postal_code')
->oninput(config('ninja.google_maps_api_key') ? 'lookupPostalCode()' : '') !!}
{!! Former::select('country_id')->addOption('','')
->autocomplete('off')
->fromQuery($countries, 'name', 'id') !!}
</div>