[BUG] Incorrect behavior of the `in` operator
robertkokoev opened this issue ยท 1 comments
robertkokoev commented
๐ Bug report
Description
'in' operator doesn't work correctly with POLYMORPHEUS_CONTEXT
Reproduction
constructor(
@Inject(POLYMORPHEUS_CONTEXT) readonly context: Record<string, string>
) {
// context = { a: 'text' }
const hasA = 'a' in context; // false
const value = context.a // 'text'
}
Versions
- Angular 12
- Taiga UI v2.20
waterplea commented
Fixed in 3.1.11 and Taiga UI 2.22.0 coming out today