diff --git a/src/popup/app/tools/password-generator.component.ts b/src/popup/app/tools/password-generator.component.ts index b6efd7ec5f..f4a1806188 100644 --- a/src/popup/app/tools/password-generator.component.ts +++ b/src/popup/app/tools/password-generator.component.ts @@ -11,12 +11,10 @@ export class PasswordGeneratorController { i18n: any; constructor(private $state: any, private passwordGenerationService: any, - private toastr: any, utilsService: any, private $analytics: any, - private i18nService: any) { + private toastr: any, private utilsService: any, private $analytics: any, + private i18nService: any, private $timeout: any) { this.i18n = i18nService; - utilsService.initListSectionItemListeners($(document), angular); - passwordGenerationService.getOptions().then((options: any) => { this.options = options; this.regenerate(false); @@ -40,6 +38,11 @@ export class PasswordGeneratorController { this.editState = params.editState; this.showSelect = this.addState || this.editState; + + const self = this; + this.$timeout(() => { + self.utilsService.initListSectionItemListeners(document, angular); + }, 500); } sliderMoved() {