This is a migrated thread and some comments may be shown as answers.

Bug with Autofill?

1 Answer 14 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Elliot
Top achievements
Rank 1
Elliot asked on 08 Oct 2015, 06:19 PM

I have fields for entering addresses and the region field uses a combo box:

<select kendo-combo-box ng-model="vm.pickup.region" placeholder="Region"
    k-data-text-field="'description'"
    k-data-value-field="'code'"
    k-data-source="vm.regions"
    k-group="'country'"
    k-filter="'contains'"
    k-option-label="{ code: null, description: 'Region'}"></select>‚Äč

The datasource is:

{ code: 'AB', description: 'Alberta', country: 'CA' },
{ code: 'BC', description: 'British Columbia', country: 'CA' },
{ code: 'MB', description: 'Manitoba', country: 'CA' },
{ code: 'NL', description: 'Newfoundland and Labrador', country: 'CA' },
{ code: 'NB', description: 'New Brunswick', country: 'CA' },
{ code: 'NS', description: 'Nova Scotia', country: 'CA' },
{ code: 'NT', description: 'North West Territories', country: 'CA' },
{ code: 'NU', description: 'Nunavut', country: 'CA' },
{ code: 'ON', description: 'Ontario', country: 'CA' },
{ code: 'PE', description: 'Prince Edward Island', country: 'CA' },
{ code: 'QC', description: 'Quebec', country: 'CA' },
{ code: 'SK', description: 'Saskatchewan', country: 'CA' },
{ code: 'YT', description: 'Yukon', country: 'CA' }

When I start typing in the address textbox and then use the Chrome autofill it sets the region to Ontario which does exist in the datasource however the underlying model is not updated unlike the rest of the fields.

 

1 Answer, 1 is accepted

Sort by
0
Plamen Lazarov
Telerik team
answered on 12 Oct 2015, 11:20 AM

Hello Elliot,

I am not exactly sure whether I understand you correctly. I suspect that Chrome populates the ComboBox in a way, which does not trigger its change event, that's why the underlying model is not modified. However, we are not sure of your exact setup and sequence of actions. Would it be possible to modify the following sample demo in order to demonstrate your exact scenario? Also, please provide us with the steps we should follow in order to replicate the issue locally.

Looking forward to hearing from you.

Regards,
Plamen Lazarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ComboBox
Asked by
Elliot
Top achievements
Rank 1
Answers by
Plamen Lazarov
Telerik team
Share this question
or