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:
bryner%brianryner.com 2005-01-17 04:21:11 +00:00
parent 56838b9ceb
commit 393302832e

View File

@ -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;