Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

fix(webv2): pass rebalance track styles via css to avoid prop collision

joshistoastf97d326910b3
diff --git a/invokeai/frontend/webv2/src/features/generation/ui/shared/ConditioningRebalanceBars.tsx b/invokeai/frontend/webv2/src/features/generation/ui/shared/ConditioningRebalanceBars.tsx
index 5022da9ccf..e2da15d9d4 100644
--- a/invokeai/frontend/webv2/src/features/generation/ui/shared/ConditioningRebalanceBars.tsx
+++ b/invokeai/frontend/webv2/src/features/generation/ui/shared/ConditioningRebalanceBars.tsx
@@ -223,11 +223,13 @@ export const ConditioningRebalanceBars = ({
}
}, [onActiveIndexChange]);
+ // The track takes `css` rather than a spread: SystemStyleObject carries the CSS
+ // `direction` property, which collides with Flex's flex-direction prop of that name.
return (
<Flex
align="stretch"
+ css={TRACK_PROPS}
ref={trackRef}
- {...TRACK_PROPS}
onPointerDown={handlePointerDown}
onPointerLeave={handleTrackPointerLeave}
>