Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(actions): stop remounting property filters on every match group keystroke (#70213)

Paul D'Ambrac8603426bcaf
diff --git a/products/actions/frontend/pages/ActionEdit.tsx b/products/actions/frontend/pages/ActionEdit.tsx
index fef249bc8dcb..279b8015fb00 100644
--- a/products/actions/frontend/pages/ActionEdit.tsx
+++ b/products/actions/frontend/pages/ActionEdit.tsx
@@ -334,7 +334,10 @@ export function ActionEdit({ action: loadedAction, id, actionLoading, attachTo }
{({ value: stepsValue, onChange }) => (
<div className="@container grid @4xl:grid-cols-2 gap-3">
{stepsValue.map((step: ActionStepType, index: number) => {
- const identifier = String(JSON.stringify(step))
+ // stable per-position key: deriving it from the step's content would
+ // remount the PropertyFilters subtree (and its kea logics) on every
+ // keystroke; propertyFilterLogic syncs content changes via propsChanged
+ const identifier = `action-${action.id || 'new'}-step-${index}`
return (
<ActionStep
key={index}