diff --git a/core/src/components/cat-checkbox/cat-checkbox.tsx b/core/src/components/cat-checkbox/cat-checkbox.tsx index 23d3e095..c3bd6984 100644 --- a/core/src/components/cat-checkbox/cat-checkbox.tsx +++ b/core/src/components/cat-checkbox/cat-checkbox.tsx @@ -248,6 +248,6 @@ export class CatCheckbox { } private updateResolved() { - this.resolvedValue = this.checked ? this.value ?? true : this.noValue ?? false; + this.resolvedValue = this.checked ? (this.value ?? true) : (this.noValue ?? false); } } diff --git a/core/src/components/cat-date-inline/cat-date-inline.tsx b/core/src/components/cat-date-inline/cat-date-inline.tsx index eb4f67e3..3d6bfe3e 100644 --- a/core/src/components/cat-date-inline/cat-date-inline.tsx +++ b/core/src/components/cat-date-inline/cat-date-inline.tsx @@ -453,7 +453,7 @@ export class CatDateInline { } else if (isSameMonth(this.viewDate, now) && (!minDate || minDate <= now)) { return isSameMonth(this.viewDate, date) && isSameDay(now, date); } - const minDay = isSameMonth(date, minDate) ? minDate?.getDate() ?? 1 : 1; + const minDay = isSameMonth(date, minDate) ? (minDate?.getDate() ?? 1) : 1; return isSameMonth(this.viewDate, date) && date.getDate() === minDay; } diff --git a/core/src/components/cat-dropdown/cat-dropdown.tsx b/core/src/components/cat-dropdown/cat-dropdown.tsx index 18e6b821..48cd38de 100644 --- a/core/src/components/cat-dropdown/cat-dropdown.tsx +++ b/core/src/components/cat-dropdown/cat-dropdown.tsx @@ -243,7 +243,7 @@ export class CatDropdown { const elem = elems.shift(); trigger = elem?.hasAttribute('data-trigger') ? (elem as HTMLElement) - : elem?.querySelector('[data-trigger]') ?? undefined; + : (elem?.querySelector('[data-trigger]') ?? undefined); } if (!trigger) { trigger = firstTabbable(this.triggerSlot); diff --git a/core/src/components/cat-toggle/cat-toggle.tsx b/core/src/components/cat-toggle/cat-toggle.tsx index a6a13226..9f1c27da 100644 --- a/core/src/components/cat-toggle/cat-toggle.tsx +++ b/core/src/components/cat-toggle/cat-toggle.tsx @@ -218,6 +218,6 @@ export class CatToggle { } private updateResolved() { - this.resolvedValue = this.checked ? this.value ?? true : this.noValue ?? false; + this.resolvedValue = this.checked ? (this.value ?? true) : (this.noValue ?? false); } }