Improving bounded utility function and select2 component
This commit is contained in:
1 parent
2604e227c0
commit
88df0e54f2
3 files changed
+42
-31
No files matched your search
@@ -163,6 +163,11 @@ OHIF.mixins.select2 = new OHIF.Mixin({
|
||||
const { minimumResultsForSearch } = instance.data.options;
|
||||
if (minimumResultsForSearch === Infinity || minimumResultsForSearch === -1) return;
|
||||
const $container = instance.getDropdownContainerElement();
|
||||
|
||||
if (!instance.data.wrapText) {
|
||||
$container.addClass('select2-container-nowrap');
|
||||
}
|
||||
|
||||
const $searchInput = $container.find('.select2-search__field');
|
||||
$searchInput.on('keydown.focusOnEsc', event => {
|
||||
if (event.which === 27) {
|
||||
|
||||
Reference in new issue
Block a user