diff --git a/src/app/components/dropdown/dropdown.ts b/src/app/components/dropdown/dropdown.ts index 105fdf5c2f7..ecd1b1780ff 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -932,7 +932,7 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV this.updateEditableLabel(); } - if(visibleOptions && ObjectUtils.isNotEmpty(visibleOptions)) { + if (visibleOptions && ObjectUtils.isNotEmpty(visibleOptions)) { this.selectedOption = visibleOptions[this.findSelectedOptionIndex()]; } }); diff --git a/src/app/components/listbox/listbox.ts b/src/app/components/listbox/listbox.ts index 220bf77233f..f1a3ec16d9a 100755 --- a/src/app/components/listbox/listbox.ts +++ b/src/app/components/listbox/listbox.ts @@ -784,7 +784,7 @@ export class Listbox implements AfterContentInit, OnInit, ControlValueAccessor, return; } - event && this.onClick.emit({ originalEvent: event, option, value: this.value, }); + event && this.onClick.emit({ originalEvent: event, option, value: this.value }); this.multiple ? this.onOptionSelectMultiple(event, option) : this.onOptionSelectSingle(event, option); this.optionTouched = false; diff --git a/src/app/components/tabview/tabview.ts b/src/app/components/tabview/tabview.ts index 485d9d9ddf1..a24c84af46c 100755 --- a/src/app/components/tabview/tabview.ts +++ b/src/app/components/tabview/tabview.ts @@ -272,7 +272,16 @@ export class TabPanel implements AfterContentInit, OnDestroy { template: `
- @@ -473,7 +482,7 @@ export class TabView implements AfterContentInit, AfterViewChecked, OnDestroy, B resizeObserver: Nullable; container: HTMLDivElement | undefined; - + list: HTMLUListElement | undefined; buttonVisible: boolean; @@ -504,26 +513,25 @@ export class TabView implements AfterContentInit, AfterViewChecked, OnDestroy, B ngAfterViewInit() { if (isPlatformBrowser(this.platformId)) { - if(this.autoHideButtons) { + if (this.autoHideButtons) { this.bindResizeObserver(); } - } } bindResizeObserver() { this.container = DomHandler.findSingle(this.el.nativeElement, '[data-pc-section="navcontent"]'); - this.list = DomHandler.findSingle(this.el.nativeElement,'[data-pc-section="nav"]'); + this.list = DomHandler.findSingle(this.el.nativeElement, '[data-pc-section="nav"]'); this.resizeObserver = new ResizeObserver(() => { - if(this.list.offsetWidth > this.container.offsetWidth) { + if (this.list.offsetWidth > this.container.offsetWidth) { this.buttonVisible = true; } else { this.buttonVisible = false; } this.updateButtonState(); this.cd.detectChanges(); - }) + }); this.resizeObserver.observe(this.container); } diff --git a/src/app/showcase/doc/dropdown/templatedoc.ts b/src/app/showcase/doc/dropdown/templatedoc.ts index 69f7a2bd092..e46c4d0a001 100644 --- a/src/app/showcase/doc/dropdown/templatedoc.ts +++ b/src/app/showcase/doc/dropdown/templatedoc.ts @@ -1,7 +1,6 @@ import { Component, Input, OnInit } from '@angular/core'; import { Code } from '../../domain/code'; - @Component({ selector: 'dropdown-template-demo', template: `