Setting selected_value on a Picker does not update the search box

Bug #819274 reported by Gavin Panella
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
High
Unassigned

Bug Description

TextFieldPickerPlugin has some code that does the right thing in some
instances (i.e. update the search box as the picker is shown):

        this.doAfter('show', function() {
            var selected_value = null;
            if ( input.get("value") ) {
                selected_value = input.get("value");
            }
--> this.get('host')._search_input.set('value', selected_value);
            this.get('host').set(SELECTED_VALUE, selected_value);
        });

However, this code should probably be chained to selected_valueChange:

    picker.after("selected_valueChange", function(e) {
        picker._search_input.set("value", e.newVal);
    });

This is what I'll be doing in lp.registry.distroseries.differences. I
would have made the change to the Picker itself but I'm unsure of the
repercussions, so want someone else to also think about it.

Tags: javascript ui
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.