victorgarciaesgi / regle

📏 Typescript first model-based form validation library for Vue 3
https://regle.vercel.app
MIT License
9 stars 0 forks source link

Collection items are not being marked as "$dirty" #4

Closed martinszeltins closed 3 weeks ago

martinszeltins commented 3 weeks ago

When you modify an item inside a collection - it does not get marked as dirty. I provided a reproduction and steps to take to reproduce the issue.

1 Fill out the name, gets marked as dirty (good)

2 Add 2 skills and modify the name of one of the skills - does not get marked as dirty (bug)

the "dirtyAny" property is also false but should be true

Reproduction link: https://stackblitz.com/~/github.com/martinszeltins/regle-test-2?file=app.vue

Screenshot: dirty2

victorgarciaesgi commented 3 weeks ago

Thanks for the bug report! I'll look 👍

victorgarciaesgi commented 3 weeks ago

In your screenshot you're showcasing skill[0].skillName, the 2nd element is correctly updated to dirty

image
martinszeltins commented 3 weeks ago

In your screenshot you're showcasing skill[0].skillName, the 2nd element is correctly updated to dirty

Ah, you're right! Sorry about that. Problem solved then 👍🏻