You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by jm...@apache.org on 2007/10/23 01:56:28 UTC
svn commit: r587359 -
/incubator/xap/trunk/codebase/src/xap/bridges/xap/ListBoxBridge.js
Author: jmargaris
Date: Mon Oct 22 18:56:27 2007
New Revision: 587359
URL: http://svn.apache.org/viewvc?rev=587359&view=rev
Log:
when first child is added to combobox select it
Modified:
incubator/xap/trunk/codebase/src/xap/bridges/xap/ListBoxBridge.js
Modified: incubator/xap/trunk/codebase/src/xap/bridges/xap/ListBoxBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/bridges/xap/ListBoxBridge.js?rev=587359&r1=587358&r2=587359&view=diff
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/bridges/xap/ListBoxBridge.js (original)
+++ incubator/xap/trunk/codebase/src/xap/bridges/xap/ListBoxBridge.js Mon Oct 22 18:56:27 2007
@@ -145,7 +145,7 @@
xap.bridges.xap.ListBoxBridge.superclass.childAdded.call(this,anEvent) ;
if (this._peer.isCombobox){
var select = this._peer.select;
- if (select.selectedIndex == -1){
+ if (select.options.length===1){
select.selectedIndex = 0 ;
this.revalue() ;
}