Code Insights: Creation UI pages do not focus Monaco query like input if it's a first invalid field
View options
- Truncate descriptions
Created by: vovakulikov
Context
In the code insight creation UI pages we have a form logic that if a user clicks on submit button and this user hasn't filled in all fields properly our form autofocus a first invalid input. Since we use Monaco query input for the search query field and Monaco isn't native browser input our logic inside the useForm hook doesn't handle this case properly. As a result, if the search query field wasn't filled in correctly and the user clicks submit button nothing will happen.
Steps to reproduce
- Go to search-based creation UI
- Fill in all fields correctly except the data series query field
- Click on submit button
- See that search field wasn't focused by page automatically
Expected behavior
- Go to search-based creation UI
- Fill in all fields correctly except the data series query field
- Click on submit button
- See that search field is focused by page automatically

