Skip to content

Commit

Permalink
refactor: remove unnecessary scrollToErrorList call and update import…
Browse files Browse the repository at this point in the history
… statement for EventCallback
  • Loading branch information
deleonio committed Feb 4, 2025
1 parent 108dba3 commit 4c6dc85
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/components/src/components/form/shadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export class KolForm implements FormAPI {
ref={(el) => {
if (index === 0) {
this.errorListFirstLink = el;
this.scrollToErrorList();
}
}}
/>
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/schema/props/error-list.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Generic } from 'adopted-style-sheets';
import { EventCallback } from '../types';
import type { EventCallback } from '../types';
import { watchValidator } from '../utils';

/* types */
Expand Down

0 comments on commit 4c6dc85

Please sign in to comment.