Skip to content

Commit 6072b82

Browse files
committed
Fix type attribute handling in polyfilledTypes function and update changelog
1 parent 4a8f4c7 commit 6072b82

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

.changeset/honest-hounds-guess.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@vtbag/utensil-drawer': patch
3+
---
4+
5+
Ever had two single points of thruth. Fixed.

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
### Patch Changes
1212

1313
- 9b2e7ab: mayStartViewTransition: Enhances error logging by allowing suppression when specified, and exposes a method to flush pending updates for better external control of state.
14-
- d5f2d9b: setvectors: Improves group name extraction for view transitions
14+
- d5f2d9b: setVectors: Improves group name extraction for view transitions
1515

1616
## 1.2.15 - 2026-01-02
1717

src/polyfilled-types.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ export function polyfilledTypes(
2020
if (typesProp === 'add') {
2121
return (value: string) => {
2222
typesTarget.add(value);
23-
const typeAttr = 'vtbag-vtt-' + value;
24-
classList.add(typeAttr);
23+
classList.add('vtbag-vtt-' + value);
2524
};
2625
} else if (typesProp === 'delete') {
2726
return (value: string) => {
@@ -34,7 +33,7 @@ export function polyfilledTypes(
3433
typesTarget.clear();
3534
};
3635
} else if (typesProp === 'has') {
37-
return (value: string) => classList.contains('vtbag-vtt-' + value);
36+
return (value: string) => typesTarget.has(value);
3837
} else if (typesProp === Symbol.iterator) {
3938
return () => typesTarget[Symbol.iterator]();
4039
}

0 commit comments

Comments
 (0)