Skip to content

NcTextField v-model does not work when used in a spawnDialog component #6280

@juliusknorr

Description

@juliusknorr

Starting with 8.20 the richdocuments cypress tests for the save as dialog started to fail. When checking out the failure locally I've noticed that the v-model of the NcTextField used there is no longer working properly:

https://github.com/nextcloud/richdocuments/blob/dependabot/npm_and_yarn/nextcloud/vue-8.21.0/src/components/Modal/SaveAs.vue#L11-L15

In the console I'm getting the following error, however I lack deeper understanding in how vue js works in order to further debug this.

It seems to originate from #6172

Screenshot 2024-11-28 at 16 15 14

The only thing special about that usage compared to the examples in the docs is that the component is initialized as part of a spawnDialog method of @nextcloud/dialogs

@ShGKme Since you introduced that referenced pull request, do you have any idea what might go wrong here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions