Skip to content

Commit

Permalink
Merge branch 'development' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
lexasq authored Oct 28, 2024
2 parents be0d7c3 + 888bd3d commit f975142
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"recommendations": [
"nrwl.angular-console",
"angular.ng-template",
"EditorConfig.EditorConfig",
"ms-vscode.vscode-typescript-tslint-plugin",
"esbenp.prettier-vscode",
"firsttris.vscode-jest-runner"
]
}
}
6 changes: 5 additions & 1 deletion src/datepicker/themes/bs/bs-custom-dates-view.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface BsCustomDates {
type="button"
class="btn"
(click)="selectFromRanges(range)"
[class.selected]="range.value === selectedRange">
[class.selected]="compareRanges(range)">
{{ range.label }}
</button>
</div>
Expand All @@ -32,4 +32,8 @@ export class BsCustomDatesViewComponent {
selectFromRanges(range?: BsCustomDates) {
this.onSelect.emit(range);
}

compareRanges(range?: BsCustomDates) {
return JSON.stringify(range?.value) === JSON.stringify(this.selectedRange);
}
}

0 comments on commit f975142

Please sign in to comment.