mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-29 17:38:04 +01:00
Fix initListSectionItemListeners (#355)
This commit is contained in:
parent
8ae178aff3
commit
45a269a5f0
@ -204,7 +204,7 @@ export default class UtilsService {
|
||||
throw new Error('doc parameter required');
|
||||
}
|
||||
|
||||
doc.on('click', '.list-section-item', (e: JQuery.Event) => {
|
||||
doc.on('click', '.list-section-item', function(e: JQuery.Event) {
|
||||
if (e.isDefaultPrevented && e.isDefaultPrevented.name === 'returnTrue') {
|
||||
return;
|
||||
}
|
||||
@ -241,11 +241,12 @@ export default class UtilsService {
|
||||
doc.on(
|
||||
'focus',
|
||||
'.list-section-item input, .list-section-item select, .list-section-item textarea',
|
||||
(e: Event) => {
|
||||
function(e: Event) {
|
||||
$(this).parent().addClass('active');
|
||||
});
|
||||
doc.on(
|
||||
'blur', '.list-section-item input, .list-section-item select, .list-section-item textarea', (e: Event) => {
|
||||
'blur', '.list-section-item input, .list-section-item select, .list-section-item textarea',
|
||||
function(e: Event) {
|
||||
$(this).parent().removeClass('active');
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user