File tree 3 files changed +17
-3
lines changed
3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 187
187
<select name="empty-multi-select" size="5" multiple="multiple"></select>
188
188
</p>
189
189
190
+ <p>
191
+ Multi-select with few options<br />
192
+ <select name="multi-select-few-options" multiple="multiple" size="5">
193
+ <option value="1" selected="selected">Item 1</option>
194
+ <option value="2">Item 2</option>
195
+ <option value="3">Item 3</option>
196
+ </select>
197
+ </p>
198
+
190
199
<p>
191
200
No multi-select, size = 4<br />
192
201
<select name="no-multi-with-size-4" size="4">
Original file line number Diff line number Diff line change 1
1
/*
2
2
3
- jQuery selectBox (version 1.0.5 )
3
+ jQuery selectBox (version 1.0.6 )
4
4
5
5
A cosmetic, styleable replacement for SELECT elements.
6
6
92
92
- Clicking no longer toggles selected/unselected in multi-selects; use CTRL/CMD and
93
93
SHIFT like in normal browser controls
94
94
- Fixed bug where inline controls would not receive focus unless tabbed into
95
+ v1.0.6 (2011-04-29) - Fixed bug where inline controls could be "dragged" when selecting an empty area
95
96
96
97
97
98
Known Issues:
@@ -169,6 +170,10 @@ if(jQuery) (function($) {
169
170
. bind ( 'keypress.selectBox' , function ( event ) {
170
171
handleKeyPress ( select , event ) ;
171
172
} )
173
+ . bind ( 'mousedown.selectBox' , function ( event ) {
174
+ if ( $ ( event . target ) . is ( 'A.selectBox-inline' ) ) event . preventDefault ( ) ;
175
+ if ( ! control . hasClass ( 'selectBox-focus' ) ) control . focus ( ) ;
176
+ } )
172
177
. insertAfter ( select ) ;
173
178
174
179
// Auto-height based on size attribute
You can’t perform that action at this time.
0 commit comments