Skip to content

Commit

Permalink
Merge pull request #526 from wpmudev/fix/SUI-499
Browse files Browse the repository at this point in the history
fix(insert-variables): Removed first item as selected.
  • Loading branch information
iamleigh authored Sep 14, 2022
2 parents 34636c4 + 7672a0a commit 537382a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/js/shared-ui/select2.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,11 @@
return markup;
},
minimumResultsForSearch: hasSearch
}).on( 'select2:close', function() {
$( this ).val( null );
});

select.val( null );
};

$( '.sui-select' ).each( function() {
Expand Down

0 comments on commit 537382a

Please sign in to comment.