Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(editor): Auto focus first fields on SignIn, SignUp and ForgotMyPassword views #11445

Merged
merged 6 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions packages/editor-ui/src/views/SigninView.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { createComponentRenderer } from '@/__tests__/render';
import { createTestingPinia } from '@pinia/testing';
import SigninView from '@/views/SigninView.vue';

const renderComponent = createComponentRenderer(SigninView);

describe('SigninView', () => {
beforeEach(() => {
createTestingPinia();
});

it('should not throw error when opened', () => {
expect(() => renderComponent()).not.toThrow();
});
});
1 change: 1 addition & 0 deletions packages/editor-ui/src/views/SigninView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const formConfig: IFormBoxConfig = reactive({
validateOnBlur: false,
autocomplete: 'email',
capitalize: true,
focusInitially: true,
},
},
{
Expand Down