Permalink
Browse files

FIX Skip autofocus on TreeDropdownField

To avoid (visually) unsetting the selected value if the drop down
is the first form field on the page (see LeftAndMain.EditForm.js)
  • Loading branch information...
1 parent f296439 commit da87614d8f3fe8c5481cce5c19031c2d5d45fd0a @chillu chillu committed with wilr Apr 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 javascript/TreeDropdownField.js
@@ -255,7 +255,7 @@
var title = decodeURIComponent(this.data('title'));
this.find('.treedropdownfield-title').replaceWith(
- $('<input type="text" class="treedropdownfield-title search" />')
+ $('<input type="text" class="treedropdownfield-title search" data-skip-autofocus="true" />')
);
this.setTitle(title ? title : strings.searchFieldTitle);

0 comments on commit da87614

Please sign in to comment.