Bug with Autofill?

2 posts, 0 answers
  1. Elliot
    Elliot avatar
    59 posts
    Member since:
    May 2012

    Posted 08 Oct 2015 Link to this post

    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.

     

  2. Plamen Lazarov
    Admin
    Plamen Lazarov avatar
    135 posts

    Posted 12 Oct 2015 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
Back to Top