You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used a Field Array for multiple URL inputs. When sending the form, I wanted to display an error message inside the input field UI if any of the addresses entered were not in the correct URL format, but I am experiencing the following bug.
The array field error data is initially [null, null, null] by three empty inputs, but when error occurs it is ['URL not available', 'URL not available'].
Which package/s are you using?
felte (Svelte), @felte/validator-zod
Environment
OS: MacOS
Browser: FireFox, Chrome
Version
"@felte/core": "^1.4.1"
"@felte/validator-zod": "^1.0.17"
"felte": "^1.2.12"
To reproduce
add 2 or more variable fields.
n number of null items as an error result.
input a non-URL string in one of the fields.
submit. The nulls are omitted and there is only one string item as an error message.
Small reproduction example
No response
Screenshots
Additional context
I am using zod as validator. here is schema:
constUpdateSpaceSchema=z.object({externalLinks: z.array(z.string().url('URL not available')).optional(),});
The text was updated successfully, but these errors were encountered:
felt array field 사용 시 오류 데이터 순서가 부정확한 버그로 FormValidationMessage 컴포넌트를 통해 오류가 제대로 표시되지 않은 문제가 있습니다. 해당 버그의 대안으로 토스트로 피드백을 주는 장치를 추가했습니다.
버그를 제보하고 답변이 오길 기다리고 있습니다. pablo-abc/felte#284
Describe the bug
I used a Field Array for multiple URL inputs. When sending the form, I wanted to display an error message inside the input field UI if any of the addresses entered were not in the correct URL format, but I am experiencing the following bug.
The array field error data is initially
[null, null, null]
by three empty inputs, but when error occurs it is['URL not available', 'URL not available']
.Which package/s are you using?
felte (Svelte), @felte/validator-zod
Environment
To reproduce
Small reproduction example
No response
Screenshots
Additional context
I am using zod as validator. here is schema:
The text was updated successfully, but these errors were encountered: