diff options
-rw-r--r-- | server/sonar-web/src/main/js/components/rules/RuleDescription.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/components/rules/RuleDescription.tsx b/server/sonar-web/src/main/js/components/rules/RuleDescription.tsx index a3f29e3b9ff..85e8717ec26 100644 --- a/server/sonar-web/src/main/js/components/rules/RuleDescription.tsx +++ b/server/sonar-web/src/main/js/components/rules/RuleDescription.tsx @@ -171,6 +171,9 @@ export default class RuleDescription extends React.PureComponent<Props, State> { markdown: isDefault, 'rule-desc': !isDefault })} + ref={node => { + node?.scrollIntoView(); + }} // eslint-disable-next-line react/no-danger dangerouslySetInnerHTML={{ __html: sanitizeString(sections[0].content) |