@binary-com/binary-style
Advanced tools
Comparing version 0.2.9 to 0.2.10
{ | ||
"name": "@binary-com/binary-style", | ||
"version": "0.2.9", | ||
"version": "0.2.10", | ||
"description": "Style system and guide for Binary.com", | ||
@@ -5,0 +5,0 @@ "main": "binary.js", |
@@ -15,2 +15,17 @@ /* | ||
export function select2onFocus() { | ||
let select2_open; | ||
// Trigger Select2 on TAB button or focus | ||
$(document).on('focus', '.select2-selection--single', (e) => { | ||
select2_open = $(e.target).parent().parent().siblings('select'); | ||
select2_open.select2('open'); | ||
}); | ||
// ie11 fix | ||
if (/rv:11.0/i.test(navigator.userAgent)) { | ||
$(document).on('blur', '.select2-search__field', () => { | ||
select2_open.select2('close'); | ||
}); | ||
} | ||
}; | ||
export function hide_menu($element) { | ||
@@ -90,3 +105,2 @@ $element.animate({'opacity': 0}, 100, () => { | ||
if ($select_dropdown.hasClass('disabled')) return; | ||
// expand dropdown expand/collapse | ||
@@ -395,2 +409,3 @@ const $siblings = $('.select-dropdown').not(e.target); | ||
tabListener(); | ||
select2onFocus(); | ||
}); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2333486
7901
4