Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 2.2.0 beta and vue 3.1.1 table demo edit row gives error (there is workaround) #4182

Closed
1 task done
ais-one opened this issue Jun 8, 2021 · 3 comments
Closed
1 task done

Comments

@ais-one
Copy link

ais-one commented Jun 8, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.2.0-beta.2

Environment

Windows 10 Home, Chrome 91, Vue 3.1.1, Ant Design 2.2.0-beta-2

Reproduction link

https://2x.antdv.com/components/table#components-table-demo-edit-row

Steps to reproduce

Use the sample code in minimal reproduction link (select version 2.X), use JS

What is expected?

normal operation

What is actually happening?

page is crashing with error: v-model value must be a valid JavaScript member expression


Error on line 7 v-model:value="editableData[record.key][col]"

temporary work around is to use

:value="editableData[record.key][col]"
@change="(e) => editableData[record.key][col] = e.target.value"

@zkwolf
Copy link
Member

zkwolf commented Jun 9, 2021

vuejs/core#3910

@tangjinzhou
Copy link
Member

update vue to 3.1.2

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants