diff --git a/x-pack/plugins/security_solution/public/detection_engine/rule_creation_ui/pages/rule_creation/index.tsx b/x-pack/plugins/security_solution/public/detection_engine/rule_creation_ui/pages/rule_creation/index.tsx index 85c2f92b2bff6..688ba57ff142f 100644 --- a/x-pack/plugins/security_solution/public/detection_engine/rule_creation_ui/pages/rule_creation/index.tsx +++ b/x-pack/plugins/security_solution/public/detection_engine/rule_creation_ui/pages/rule_creation/index.tsx @@ -567,27 +567,38 @@ const CreateRulePageComponent: React.FC = () => { () => ( <> -
- - - -
+ { + // TODO: https://github.com/elastic/kibana/issues/161456 + // The About step page contains EuiRnage component which does not work properly within memoized parents. + // In this case we memoize the StepAboutRule and initially this component is offscreen since the Define step page is default. + // The About step page is not displayed due to `style.display ='none'` and this breaks EuiRange. + // EUI team suggested not to memoize EuiRange/EuiDualRange: https://github.com/elastic/eui/issues/6846 + // Related ticket: https://github.com/elastic/kibana/issues/160561 + // NOTE: We should remove this workaround once EUI team fixed EuiRange. + activeStep !== RuleStep.aboutRule ? null : ( +
+ + + +
+ ) + } {memoAboutStepReadOnly} ), diff --git a/x-pack/plugins/security_solution/public/detection_engine/rule_creation_ui/pages/rule_editing/index.tsx b/x-pack/plugins/security_solution/public/detection_engine/rule_creation_ui/pages/rule_editing/index.tsx index b8e735ecfc0f2..5a00f3830ed96 100644 --- a/x-pack/plugins/security_solution/public/detection_engine/rule_creation_ui/pages/rule_editing/index.tsx +++ b/x-pack/plugins/security_solution/public/detection_engine/rule_creation_ui/pages/rule_editing/index.tsx @@ -257,31 +257,39 @@ const EditRulePageComponent: FC<{ rule: Rule }> = ({ rule }) => { id: RuleStep.aboutRule, name: ruleI18n.ABOUT, disabled: rule?.immutable, - content: ( -
- - - {aboutStepData != null && defineStepData != null && ( - - )} + content: + // TODO: https://github.com/elastic/kibana/issues/161456 + // The About step page contains EuiRnage component which does not work properly within memoized parents. + // In this case we memoize the StepAboutRule and initially this component is offscreen since the Define step page is default. + // The About step page is not displayed due to `style.display ='none'` and this breaks EuiRange. + // EUI team suggested not to memoize EuiRange/EuiDualRange: https://github.com/elastic/eui/issues/6846 + // Related ticket: https://github.com/elastic/kibana/issues/160561 + // NOTE: We should remove this workaround once EUI team fixed EuiRange. + activeStep !== RuleStep.aboutRule ? null : ( +
- -
- ), + + {aboutStepData != null && defineStepData != null && ( + + )} + + +
+ ), }, { 'data-test-subj': 'edit-rule-schedule-tab',