Skip to content

Commit

Permalink
Format fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Dec 6, 2024
1 parent bc0c9ef commit 846c5d9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/components/autocomplete/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr
this.focusedOptionIndex.set(-1);
/** triggered only if user can input freely text
* Later on it must set touched also onSelect */
if(!this.forceSelection){
if (!this.forceSelection) {
this.onModelTouched();
}
this.onBlur.emit(event);
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/fileupload/fileupload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ export class FileUpload implements AfterViewInit, AfterContentInit, OnInit, OnDe
public cd: ChangeDetectorRef,
public config: PrimeNGConfig
) {
this.formatter = new Intl.NumberFormat(this.locale, { maximumFractionDigits: 3 })
this.formatter = new Intl.NumberFormat(this.locale, { maximumFractionDigits: 3 });
}

ngAfterContentInit() {
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/inputnumber/inputnumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ export class InputNumber implements OnInit, AfterContentInit, OnChanges, Control
}

this.lastValue = (event.target as HTMLInputElement).value;
if ((event as KeyboardEvent).shiftKey || (event as KeyboardEvent).altKey || event.key === "Dead") {
if ((event as KeyboardEvent).shiftKey || (event as KeyboardEvent).altKey || event.key === 'Dead') {
this.isSpecialChar = true;
return;
}
Expand Down
3 changes: 1 addition & 2 deletions src/app/components/tooltip/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export class Tooltip implements AfterViewInit, OnDestroy {
});
}
}

setAriaDescribedBy() {
const tooltipId = this.getOption('id');
if (tooltipId && this.active) {
Expand All @@ -218,7 +218,6 @@ export class Tooltip implements AfterViewInit, OnDestroy {
this.renderer.removeAttribute(this.el.nativeElement, 'aria-describedby');
}


ngOnChanges(simpleChange: SimpleChanges) {
if (simpleChange.tooltipPosition) {
this.setOption({ tooltipPosition: simpleChange.tooltipPosition.currentValue });
Expand Down
2 changes: 1 addition & 1 deletion src/app/showcase/layout/templates/templatelicense.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { SharedModule } from 'primeng/api';
<div class="template-license-card">
<span>{{ licenseData?.title }}</span>
<div class="template-license-price flex gap-3">
<h2 [ngClass]="{ 'discount': license?.showDiscount }">{{ licenseData?.price }}</h2>
<h2 [ngClass]="{ discount: license?.showDiscount }">{{ licenseData?.price }}</h2>
<h2 *ngIf="license?.showDiscount">{{ licenseData?.discount }}</h2>
</div>
<div class="template-license-card-included">
Expand Down

0 comments on commit 846c5d9

Please sign in to comment.