@@ -431,9 +431,19 @@ firmware_flasher.initialize = function (callback) {
431
431
$ ( 'select[name="radioProtocols"]' ) . select2 ( ) ;
432
432
$ ( 'select[name="telemetryProtocols"]' ) . select2 ( ) ;
433
433
$ ( 'select[name="motorProtocols"]' ) . select2 ( ) ;
434
- $ ( 'select[name="options"]' ) . select2 ( { closeOnSelect : false } ) ;
434
+ $ ( 'select[name="options"]' ) . select2 ( { tags : false , closeOnSelect : false } ) ;
435
435
$ ( 'select[name="commits"]' ) . select2 ( { tags : true } ) ;
436
436
437
+ $ ( 'select[name="options"]' )
438
+ . on ( 'select2:opening' , function ( ) {
439
+ const searchfield = $ ( this ) . parent ( ) . find ( '.select2-search__field' ) ;
440
+ searchfield . prop ( 'disabled' , false ) ;
441
+ } )
442
+ . on ( 'select2:closing' , function ( ) {
443
+ const searchfield = $ ( this ) . parent ( ) . find ( '.select2-search__field' ) ;
444
+ searchfield . prop ( 'disabled' , true ) ;
445
+ } ) ;
446
+
437
447
$ ( 'select[name="radioProtocols"]' ) . on ( "select2:select" , function ( ) {
438
448
const selectedProtocol = $ ( 'select[name="radioProtocols"] option:selected' ) . first ( ) . val ( ) ;
439
449
if ( selectedProtocol ) {
@@ -502,6 +512,7 @@ firmware_flasher.initialize = function (callback) {
502
512
'select[name="options"]' ,
503
513
'select[name="commits"]' ,
504
514
] ;
515
+
505
516
$ ( document ) . on ( 'select2:open' , select2Elements . join ( ',' ) , ( ) => {
506
517
const allFound = document . querySelectorAll ( '.select2-container--open .select2-search__field' ) ;
507
518
$ ( this ) . one ( 'mouseup keyup' , ( ) => {
0 commit comments