Make sure to deselect the old items before selecting new items (bug 278202). patch by aaronr@us.ibm.com, r=beaufour, sr=me.
git-svn-id: svn://10.0.0.236/trunk@167869 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
56838b9ceb
commit
393302832e
@ -342,6 +342,8 @@ nsXFormsSelectElement::Refresh()
|
||||
childNode = do_QueryElementAt(childContent, j);
|
||||
mSelect->AppendChild(childNode, getter_AddRefs(nodeReturn));
|
||||
}
|
||||
// Deselect all of the options. We'll resync with our bound node below.
|
||||
mSelect->SetSelectedIndex(-1);
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIDOMNode> modelNode;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user