Skip to content

List type - options - messages in messageBag are stuck #474

@dev-mohieb

Description

@dev-mohieb

Environment

"vite": "4.5.1"    
"nuxt": "3.10.1"
"tailwindcss": "^3.4.1"
"@vueform/nuxt": "1.11.0"
npm

Reproduction

https://stackblitz.com/edit/github-bapuuy22?file=src%2FApp.vue

Describe the bug

In field type "list", the messageBag.append("message") appends the message to the index, not the option.

When an option's position is changed due to sorting, or a removal of another option, the appended message stays on the same index without being affected by the change made on the options.

And when an option that has an appended message gets removed, the message doesn't get removed with the option, it stays on the same index as well.

Additional context

I have faced this issue with messageBag in the field type "list", but I'm not sure if it's the same across the other field types or not

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions