Skip to content

add autoFocus props#40

Merged
lovasoa merged 2 commits into
lovasoa:mainfrom
sozdayka:feature/add-autofocus-props
Apr 23, 2026
Merged

add autoFocus props#40
lovasoa merged 2 commits into
lovasoa:mainfrom
sozdayka:feature/add-autofocus-props

Conversation

@sozdayka
Copy link
Copy Markdown
Contributor

Added autoFocus support across all editor components where focus was previously applied unconditionally.
autoFocus now propagates through JsonSchemaEditor / SchemaVisualEditor and controls both input auto-focus behavior and Monaco editor.focus() calls (JsonSchemaVisualizer, JsonValidator, SchemaInferencer).

What this changes:

  • with autoFocus={false}, the editor no longer steals focus on mount;
  • default behavior remains unchanged (autoFocus defaults to true);
  • validated with npm run typecheck (passes).

Copy link
Copy Markdown
Owner

@lovasoa lovasoa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good for me, ready to merge when conflicts are fixed

@lovasoa lovasoa merged commit d2f0f55 into lovasoa:main Apr 23, 2026
3 checks passed
@lovasoa
Copy link
Copy Markdown
Owner

lovasoa commented Apr 23, 2026

Thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants