From 42db539b0c5057bc7b001860530197fff6e59769 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtek=20Rais?= Date: Mon, 5 Feb 2024 14:16:25 +0100 Subject: [PATCH 01/12] Fixed #14554 --- src/app/components/api/translationkeys.ts | 2 +- src/app/components/multiselect/multiselect.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/api/translationkeys.ts b/src/app/components/api/translationkeys.ts index ca48602cfa6..1c1f803cc23 100644 --- a/src/app/components/api/translationkeys.ts +++ b/src/app/components/api/translationkeys.ts @@ -43,5 +43,5 @@ export class TranslationKeys { public static readonly EMPTY_FILTER_MESSAGE = 'emptyFilterMessage'; public static readonly SHOW_FILTER_MENU = 'showFilterMenu'; public static readonly HIDE_FILTER_MENU = 'hideFilterMenu'; - public static readonly SELECTION_MESSAGE = '{0} items selected'; + public static readonly SELECTION_MESSAGE = 'selectionMessage'; } diff --git a/src/app/components/multiselect/multiselect.ts b/src/app/components/multiselect/multiselect.ts index b8ef582a3bb..188dc4d9b85 100755 --- a/src/app/components/multiselect/multiselect.ts +++ b/src/app/components/multiselect/multiselect.ts @@ -517,7 +517,7 @@ export class MultiSelect implements OnInit, AfterViewInit, AfterContentInit, Aft * Label to display after exceeding max selected labels e.g. ({0} items selected), defaults "ellipsis" keyword to indicate a text-overflow. * @group Props */ - @Input() selectedItemsLabel: string = '{0} items selected'; + @Input() selectedItemsLabel: string | undefined; /** * Whether to show the checkbox at header to toggle all items at once. * @group Props From 3ae91758fb7e0cf55d8516762d71e97fecc9f60c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Wed, 7 Feb 2024 15:21:13 +0300 Subject: [PATCH 02/12] Refactor on #14719 --- src/app/components/dropdown/dropdown.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/components/dropdown/dropdown.ts b/src/app/components/dropdown/dropdown.ts index 029b537cb6e..2c292d18a4e 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -886,7 +886,7 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV return { 'p-dropdown-label p-inputtext': true, 'p-placeholder': this.placeholder() && label === this.placeholder(), - 'p-dropdown-label-empty': !this.editable && !this.selectedItemTemplate && (!label || label === 'p-emptylabel' || label.length === 0) + 'p-dropdown-label-empty': !this.editable && !this.selectedItemTemplate && (label === undefined || label === null || label === 'p-emptylabel' || label.length === 0) }; } @@ -939,6 +939,7 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV label = computed(() => { const selectedOptionIndex = this.findSelectedOptionIndex(); + return selectedOptionIndex !== -1 ? this.getOptionLabel(this.visibleOptions()[selectedOptionIndex]) : this.placeholder() || 'p-emptylabel'; }); @@ -1779,7 +1780,7 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV this.onFilter.emit({ originalEvent: event, filter: this._filterValue() }); !this.virtualScrollerDisabled && this.scroller.scrollToIndex(0); setTimeout(() => { - this.overlayViewChild.alignOverlay() + this.overlayViewChild.alignOverlay(); }); this.cd.markForCheck(); } From 9747f3cf41e431554c96772ecc421bbf202822e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Wed, 7 Feb 2024 15:30:04 +0300 Subject: [PATCH 03/12] =?UTF-8?q?Fixed=20#14701=20-=20Dropdown=20|=20remov?= =?UTF-8?q?ing=20a=20letter=20from=20filter=20that=20comes=20af=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/components/dropdown/dropdown.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/components/dropdown/dropdown.ts b/src/app/components/dropdown/dropdown.ts index 029b537cb6e..6db1d0e96ff 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -912,11 +912,11 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV !_filterBy && !this.filterFields && !this.optionValue ? this.options.filter((option) => { if (option.label) { - return option.label.toLowerCase().indexOf(this._filterValue().toLowerCase()) !== -1; + return option.label.toLowerCase().indexOf(this._filterValue().toLowerCase().trim()) !== -1; } - return option.toLowerCase().indexOf(this._filterValue().toLowerCase()) !== -1; + return option.toLowerCase().indexOf(this._filterValue().toLowerCase().trim()) !== -1; }) - : this.filterService.filter(options, this.searchFields(), this._filterValue(), this.filterMatchMode, this.filterLocale); + : this.filterService.filter(options, this.searchFields(), this._filterValue().trim(), this.filterMatchMode, this.filterLocale); if (this.group) { const optionGroups = this.options || []; From eaa06c7f2bd574a24a6a54ada136b2b8ba227722 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Wed, 7 Feb 2024 15:31:53 +0300 Subject: [PATCH 04/12] refactor --- src/app/components/dropdown/dropdown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/dropdown/dropdown.ts b/src/app/components/dropdown/dropdown.ts index 6db1d0e96ff..f2a30af02da 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -1773,7 +1773,7 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV } onFilterInputChange(event: Event | any): void { - let value: string = (event.target as HTMLInputElement).value?.trim(); + let value: string = (event.target as HTMLInputElement).value this._filterValue.set(value); this.focusedOptionIndex.set(-1); this.onFilter.emit({ originalEvent: event, filter: this._filterValue() }); From 579033f2ea4ca36e09de12c57dc5a16f977b6a6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Wed, 7 Feb 2024 16:32:11 +0300 Subject: [PATCH 05/12] Fixed #14442 - Multiselect | double click on multiselect button causes modal window to jump around before disappearing --- src/app/components/multiselect/multiselect.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/app/components/multiselect/multiselect.ts b/src/app/components/multiselect/multiselect.ts index 51fc8931029..938d0179c38 100755 --- a/src/app/components/multiselect/multiselect.ts +++ b/src/app/components/multiselect/multiselect.ts @@ -976,6 +976,8 @@ export class MultiSelect implements OnInit, AfterViewInit, AfterContentInit, Aft selectedOptions: any; + clickInProgress : boolean = false; + get containerClass() { return { 'p-multiselect p-component p-inputwrapper': true, @@ -1692,7 +1694,7 @@ export class MultiSelect implements OnInit, AfterViewInit, AfterContentInit, Aft } onContainerClick(event: any) { - if (this.disabled || this.readonly || (event.target).isSameNode(this.focusInputViewChild?.nativeElement)) { + if (this.disabled || this.readonly || (event.target as Node).isSameNode(this.focusInputViewChild?.nativeElement)) { return; } @@ -1700,6 +1702,16 @@ export class MultiSelect implements OnInit, AfterViewInit, AfterContentInit, Aft event.preventDefault(); return; } else if (!this.overlayViewChild || !this.overlayViewChild.el.nativeElement.contains(event.target)) { + if (this.clickInProgress) { + return; + } + + this.clickInProgress = true; + + setTimeout(() => { + this.clickInProgress = false; + }, 150); + this.overlayVisible ? this.hide(true) : this.show(true); } this.focusInputViewChild?.nativeElement.focus({ preventScroll: true }); From 652df0c670eea0405c83eee47ece5805033e8796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Wed, 7 Feb 2024 16:58:44 +0300 Subject: [PATCH 06/12] Fixed #14298 - Remove afterViewCheck to avoid affecting components with virtualScroll --- src/app/components/inputtextarea/inputtextarea.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/app/components/inputtextarea/inputtextarea.ts b/src/app/components/inputtextarea/inputtextarea.ts index 2ba3ee128e5..87cf924c2f0 100755 --- a/src/app/components/inputtextarea/inputtextarea.ts +++ b/src/app/components/inputtextarea/inputtextarea.ts @@ -14,7 +14,7 @@ import { Subscription } from 'rxjs'; '[class.p-inputtextarea-resizable]': 'autoResize' } }) -export class InputTextarea implements OnInit, AfterViewInit, AfterViewChecked, OnDestroy { +export class InputTextarea implements OnInit, AfterViewInit, OnDestroy { /** * When present, textarea size changes as being typed. * @group Props @@ -51,10 +51,6 @@ export class InputTextarea implements OnInit, AfterViewInit, AfterViewChecked, O } } - ngAfterViewChecked() { - this.updateState(); - } - ngAfterViewInit() { if (this.autoResize) this.resize(); From a2df2b30e2a9884c35b549d3840dfe9883d0d9dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Wed, 7 Feb 2024 17:28:37 +0300 Subject: [PATCH 07/12] Fix typo --- src/app/components/multiselect/multiselect.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/multiselect/multiselect.ts b/src/app/components/multiselect/multiselect.ts index 938d0179c38..320f2e2af78 100755 --- a/src/app/components/multiselect/multiselect.ts +++ b/src/app/components/multiselect/multiselect.ts @@ -177,7 +177,7 @@ export class MultiSelectItem { - {{ placeholder || defaultLabel || 'empty' }} + {{ placeholder() || defaultLabel || 'empty' }} From 5129958f9f9e3b78e50978077fd803285fd69ddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Wed, 7 Feb 2024 17:31:44 +0300 Subject: [PATCH 08/12] remove trim --- src/app/components/multiselect/multiselect.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/multiselect/multiselect.ts b/src/app/components/multiselect/multiselect.ts index 320f2e2af78..d7aaba99f4d 100755 --- a/src/app/components/multiselect/multiselect.ts +++ b/src/app/components/multiselect/multiselect.ts @@ -976,7 +976,7 @@ export class MultiSelect implements OnInit, AfterViewInit, AfterContentInit, Aft selectedOptions: any; - clickInProgress : boolean = false; + clickInProgress: boolean = false; get containerClass() { return { @@ -1747,7 +1747,7 @@ export class MultiSelect implements OnInit, AfterViewInit, AfterContentInit, Aft } onFilterInputChange(event: KeyboardEvent) { - let value: string = (event.target as HTMLInputElement).value?.trim(); + let value: string = (event.target as HTMLInputElement).value; this._filterValue.set(value); this.focusedOptionIndex.set(-1); this.onFilter.emit({ originalEvent: event, filter: this._filterValue() }); From 090cbc717832c054bcb0f35a01772955737879aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Wed, 7 Feb 2024 17:49:46 +0300 Subject: [PATCH 09/12] Revert "fix #14484 Calendar: the initial load now respect the dateFormat" --- src/app/components/calendar/calendar.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/components/calendar/calendar.ts b/src/app/components/calendar/calendar.ts index 311bf6f2ecb..ce28618cce4 100755 --- a/src/app/components/calendar/calendar.ts +++ b/src/app/components/calendar/calendar.ts @@ -3016,9 +3016,7 @@ export class Calendar implements OnInit, OnDestroy, ControlValueAccessor { } } } - if (this.dataType === 'string') { - this.updateModel(value); - } + this.updateInputfield(); this.updateUI(); this.cd.markForCheck(); From c47e8c2e7633af8e814e88b71a5742dd0777da26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Wed, 7 Feb 2024 18:39:59 +0300 Subject: [PATCH 10/12] Set new version & Update changelog --- CHANGELOG.md | 28 +++++++++++++++++++ package.json | 2 +- src/app/components/package.json | 2 +- src/app/showcase/data/versions.json | 6 ++-- .../layout/doc/codeeditor/templates.ts | 2 +- 5 files changed, 34 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f4bb2225629..e1b40e3b6a6 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,32 @@ # Changelog +## [17.6.0](https://github.com/primefaces/primeng/tree/17.6.0) (2024-02-07) + +[Full Changelog](https://github.com/primefaces/primeng/compare/17.5.0...17.6.0) + +**Implemented New Features and Enhancements:** +- Dropdown | make clear method public for better DX [\#14641](https://github.com/primefaces/primeng/issues/14641) + +**Fixed bugs:** +- MultiSelect: selectedItemsLabel is not localized (re-opened) [\#14554](https://github.com/primefaces/primeng/issues/14554) +- Component: Calendar isn't show initial value from FormControl/ngModel [\#14616](https://github.com/primefaces/primeng/issues/14616) +- Component: Dropdown removing a letter from filter that comes after a whitespace ' ' removes the whitespace [\#14701](https://github.com/primefaces/primeng/issues/14701) +- Component: p-multiselect - double click on multiselect "button" causes modal window to jump around before disappearing [\#14442](https://github.com/primefaces/primeng/issues/14442) +- Virtual Scroll Jumping Backwards [\#14298](https://github.com/primefaces/primeng/issues/14298) +- p-dropdown: dropdown options float to the top when searching [\#14659](https://github.com/primefaces/primeng/issues/14659) +- Dropdown: Key events not correctly working when filter is enabled [\#14189](https://github.com/primefaces/primeng/issues/14189) +- Component: Dropdown| closing overlay on pressing enter key on filter input [\#14708](https://github.com/primefaces/primeng/issues/14708) +- Component: p-Dropdown placeholder/values not displayed [\#14695](https://github.com/primefaces/primeng/issues/14695) +- TreeSelect: When using reactive form disabled input doesn't affect [\#14662](https://github.com/primefaces/primeng/issues/14662) +- MultiSelect: dynamic text in placeholder is not displayed [\#14321](https://github.com/primefaces/primeng/issues/14321) +- Dropdown: dynamic text in placeholder is not displayed [\#14320](https://github.com/primefaces/primeng/issues/14320) +- Component: Dropdown TypeError: option.toLowerCase is not a function [\#14682](https://github.com/primefaces/primeng/issues/14682) +- Dropdown: "0" Value in optionValue, causes Label to be replaced by Placeholder [\#14715](https://github.com/primefaces/primeng/issues/14715) +- The scrollToIndex method on VirtualScroller does not scroll to the correct index when triggered twice. [\#14731](https://github.com/primefaces/primeng/issues/14731) +- PrimeNg p-columnFilter does not close on outside element click or scroll or search submit [\#14658](https://github.com/primefaces/primeng/issues/14658) +- Checkbox: Disabled property does not work when it's used with formControlName [\#14693](https://github.com/primefaces/primeng/issues/14693) +- Showcase | Remove stateful config [\#14752](https://github.com/primefaces/primeng/issues/14752) + + ## [17.5.0](https://github.com/primefaces/primeng/tree/17.5.0) (2024-02-01) [Full Changelog](https://github.com/primefaces/primeng/compare/17.4.0...17.5.0) diff --git a/package.json b/package.json index 86941ae4ea6..ed24dbe2932 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "primeng", - "version": "17.5.0", + "version": "17.6.0", "license": "SEE LICENSE IN LICENSE.md", "scripts": { "ng": "ng", diff --git a/src/app/components/package.json b/src/app/components/package.json index cee5282f334..9468b002cce 100644 --- a/src/app/components/package.json +++ b/src/app/components/package.json @@ -1,6 +1,6 @@ { "name": "primeng", - "version": "17.5.0", + "version": "17.6.0", "repository": { "type": "git", "url": "https://github.com/primefaces/primeng" diff --git a/src/app/showcase/data/versions.json b/src/app/showcase/data/versions.json index c7ff02b2b20..da9c2ad68bb 100644 --- a/src/app/showcase/data/versions.json +++ b/src/app/showcase/data/versions.json @@ -1,16 +1,16 @@ [ { - "version": "v17.5.0", + "version": "v17.6.0", "name": "v17", "url": "https://primeng.org" }, { - "version": "v16.9.3-lts", + "version": "v16.9.5-lts", "name": "v16", "url": "https://www.primefaces.org/primeng-v16-lts/" }, { - "version": "v15.4.14-lts", + "version": "v15.4.16-lts", "name": "v15", "url": "https://www.primefaces.org/primeng-v15-lts/#/" }, diff --git a/src/app/showcase/layout/doc/codeeditor/templates.ts b/src/app/showcase/layout/doc/codeeditor/templates.ts index ef1df9cfeb4..748ba555e21 100644 --- a/src/app/showcase/layout/doc/codeeditor/templates.ts +++ b/src/app/showcase/layout/doc/codeeditor/templates.ts @@ -15,7 +15,7 @@ export interface Props { const app_dependencies = pkg ? pkg.devDependencies : {}; const PrimeNG = { - version: '17.5.0', + version: '17.6.0', description: 'PrimeNG is an open source UI library for Angular featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBlock, which has 370+ ready to use UI blocks to build spectacular applications in no time.' }; From 3bfb4047e253d10f5772b3f1c70f54064c288540 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Wed, 7 Feb 2024 18:44:32 +0300 Subject: [PATCH 11/12] Update changelog for LTS --- CHANGELOG.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e1b40e3b6a6..9f88dcf3155 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,8 +22,8 @@ - Component: Dropdown TypeError: option.toLowerCase is not a function [\#14682](https://github.com/primefaces/primeng/issues/14682) - Dropdown: "0" Value in optionValue, causes Label to be replaced by Placeholder [\#14715](https://github.com/primefaces/primeng/issues/14715) - The scrollToIndex method on VirtualScroller does not scroll to the correct index when triggered twice. [\#14731](https://github.com/primefaces/primeng/issues/14731) -- PrimeNg p-columnFilter does not close on outside element click or scroll or search submit [\#14658](https://github.com/primefaces/primeng/issues/14658) - Checkbox: Disabled property does not work when it's used with formControlName [\#14693](https://github.com/primefaces/primeng/issues/14693) +- PrimeNg p-columnFilter does not close on outside element click or scroll or search submit [\#14658](https://github.com/primefaces/primeng/issues/14658) - Showcase | Remove stateful config [\#14752](https://github.com/primefaces/primeng/issues/14752) @@ -270,6 +270,12 @@ - TypeError: this.focusedItemInfo.mutate is not a function [\#14119](https://github.com/primefaces/primeng/issues/14119) - Upgrade to Angular 17? [\#14063](https://github.com/primefaces/primeng/issues/14063) +## ![LTS](https://www.primefaces.org/wp-content/uploads/2020/01/lts-icon-24.png "PrimeNG LTS") [16.9.5-LTS](https://www.npmjs.com/package/primeng/v/16.9.5-lts) (2024-02-07) + +**Fixed bugs:** +- The scrollToIndex method on VirtualScroller does not scroll to the correct index when triggered twice. [\#14731](https://github.com/primefaces/primeng/issues/14731) +- Checkbox: Disabled property does not work when it's used with formControlName [\#14693](https://github.com/primefaces/primeng/issues/14693) + ## ![LTS](https://www.primefaces.org/wp-content/uploads/2020/01/lts-icon-24.png "PrimeNG LTS") [16.9.4-LTS](https://www.npmjs.com/package/primeng/v/16.9.4-lts) (2024-01-19) **Fixed bugs:** @@ -817,6 +823,12 @@ - Checkbox in p-treeNode always checked when using custom icon [\#12951](https://github.com/primefaces/primeng/issues/12951) - ConfirmDialog: Duplicated AcceptIcons [\#13001](https://github.com/primefaces/primeng/issues/13001) +## ![LTS](https://www.primefaces.org/wp-content/uploads/2020/01/lts-icon-24.png "PrimeNG LTS") [15.4.16-LTS](https://www.npmjs.com/package/primeng/v/15.4.16-lts) (2024-02-07) + +**Fixed bugs:** +- The scrollToIndex method on VirtualScroller does not scroll to the correct index when triggered twice. [\#14731](https://github.com/primefaces/primeng/issues/14731) +- Checkbox: Disabled property does not work when it's used with formControlName [\#14693](https://github.com/primefaces/primeng/issues/14693) + ## ![LTS](https://www.primefaces.org/wp-content/uploads/2020/01/lts-icon-24.png "PrimeNG LTS") [15.4.15-LTS](https://www.npmjs.com/package/primeng/v/15.4.15-lts) (2024-01-19) **Fixed bugs:** From ee3f8d5be0dd6ed8783cbc67b9f26e1c0d962034 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Wed, 7 Feb 2024 18:46:19 +0300 Subject: [PATCH 12/12] code format --- src/app/components/dropdown/dropdown.ts | 2 +- src/app/showcase/layout/doc/app.docsection-nav.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/dropdown/dropdown.ts b/src/app/components/dropdown/dropdown.ts index acf6170c850..54c58442874 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -1774,7 +1774,7 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV } onFilterInputChange(event: Event | any): void { - let value: string = (event.target as HTMLInputElement).value + let value: string = (event.target as HTMLInputElement).value; this._filterValue.set(value); this.focusedOptionIndex.set(-1); this.onFilter.emit({ originalEvent: event, filter: this._filterValue() }); diff --git a/src/app/showcase/layout/doc/app.docsection-nav.component.ts b/src/app/showcase/layout/doc/app.docsection-nav.component.ts index 31e17a8e223..3c9bf1b2d90 100644 --- a/src/app/showcase/layout/doc/app.docsection-nav.component.ts +++ b/src/app/showcase/layout/doc/app.docsection-nav.component.ts @@ -92,7 +92,7 @@ export class AppDocSectionNavComponent implements OnInit, OnDestroy { return [...Array.from(this.document.querySelectorAll(':is(h1,h2,h3).doc-section-label'))].filter((el: any) => DomHandler.isVisible(el)); } - onScroll() { + onScroll() { if (isPlatformBrowser(this.platformId) && this.nav) { if (!this.isScrollBlocked) { this.zone.run(() => {