Fixes issue 19876: Can not type in text field of combo
authorMartin Taal <martin.taal@openbravo.com>
Sat, 25 Feb 2012 22:57:05 +0100
changeset 15619 5c826f295b19
parent 15618 53ba4554c028
child 15620 1541313b8949
Fixes issue 19876: Can not type in text field of combo
Set selectOnFocus to false for list items, but let the value be selected when the field gets explicit focus
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js	Sat Feb 25 22:04:46 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js	Sat Feb 25 22:57:05 2012 +0100
@@ -29,6 +29,11 @@
   completeOnTab: true,
   validateOnExit: true,
 
+  // https://issues.openbravo.com/view.php?id=19876
+  selectOnFocus: false,
+  // still do select on focus initially
+  doInitialSelectOnFocus: true,
+
   // textMatchStyle is used for the client-side picklist
   textMatchStyle: 'substring',