Skip to content

chore(mantine): fix typescript expectation errors in form hooks - #7505

Open
samlehoy wants to merge 2 commits into
refinedev:mainfrom
samlehoy:fix/mantine-form-event-types
Open

chore(mantine): fix typescript expectation errors in form hooks#7505
samlehoy wants to merge 2 commits into
refinedev:mainfrom
samlehoy:fix/mantine-form-event-types

Conversation

@samlehoy

Copy link
Copy Markdown

Description

This PR fixes a TypeScript expectation warning in @refinedev/mantine's useForm and useModalForm hooks where onSubmit was throwing a type error because of an incompatible pointer event. The // @ts-expect-error comments were removed and the event object was safely cast.

This cleans up the compiler warnings and maintains strict typings without silently ignoring errors.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How should this be tested?

  • View packages/mantine/src/hooks/form/useForm/index.ts and useModalForm/index.ts to verify there are no TypeScript errors.

@changeset-bot

changeset-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 88cf228

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@refinedev/mantine Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

1 participant