Skip to content

Commit

Permalink
#2172 Make automatic focus on CommonCanvas opt-out (#2174)
Browse files Browse the repository at this point in the history
Signed-off-by: CTomlyn <[email protected]>
  • Loading branch information
tomlyn authored Sep 24, 2024
1 parent b8c2388 commit 5ff5d8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ class CanvasContents extends React.Component {
if (this.props.canvasConfig.enableBrowserEditMenu) {
this.addEventListeners();
}
this.focusOnCanvas();

if (this.props.canvasConfig.enableFocusOnMount) {
this.focusOnCanvas();
}
}

componentDidUpdate(prevProps) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export default class ConfigUtils {
enableSingleOutputPortDisplay: false,
enableNarrowPalette: true,
schemaValidation: false,
enableFocusOnMount: true,
enableBoundingRectangles: false, // Not documented
enableCanvasUnderlay: "None", // Not documented
enableParentClass: "", // Not documented
Expand Down

0 comments on commit 5ff5d8b

Please sign in to comment.