tusen-ai / naive-ui

A Vue 3 Component Library. Fairly Complete. Theme Customizable. Uses TypeScript. Fast.
https://www.naiveui.com
MIT License
16.27k stars 1.68k forks source link

Form Validation Report Error Uncaught (in promise) version-^2.38.2 #6502

Open lyublueberry opened 4 weeks ago

lyublueberry commented 4 weeks ago

Describe the bug

if the fields are empty and the form and table are validated, an error occurs when the button is clicked , error Uncaught (in promise) naive-ui.js?v=da9e97c2:60606

Steps to reproduce

1.Do not fill in the table and fields 2. Click button the handler contains the following code: from.value?.validate((errors) => if (errors) message.error(''); return; an error occurs at this stage

Link to minimal reproduction

from.value?.validate((errors) => if (errors) message.error(''); return;

System Info

Windows 10, Google Chrome v 126.0.6478.127

Used Package Manager

npm

Validations

jahnli commented 4 weeks ago

Provide a based on CodeSandbox or stackblitz `s Minimal Reproducible Example

lyublueberry commented 4 weeks ago

Предоставьте минимальный воспроизводимый пример на основе CodeSandbox или stackblitz

https://codesandbox.io/p/sandbox/2zj98t the error in the console is similar to the error in my project

lyublueberry commented 4 weeks ago

Provide a based on CodeSandbox or stackblitz `s Minimal Reproducible Example

https://www.naiveui.com/en-US/os-theme/components/form