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

[Bug Report] Trigger mechanism of span-method is unreasonable #16023

Closed
moonose opened this issue Jun 12, 2019 · 1 comment
Closed

[Bug Report] Trigger mechanism of span-method is unreasonable #16023

moonose opened this issue Jun 12, 2019 · 1 comment
Assignees
Milestone

Comments

@moonose
Copy link

moonose commented Jun 12, 2019

Element UI version

2.9.1

OS/Browsers version

Google Chrome 74.0.3729.169 64bit

Vue version

2.6.10

Reproduction Link

https://codepen.io/moonose/pen/zVxpmK

Steps to reproduce

1.bind span-method to a table
2.input some data in the input box

What is Expected?

span-method will not be triggered.
I think the reasonable mechanism of span-method should be like this:
. the bound table data changed, span-method will be triggered
. other data changed, span-method will not be triggered

What is actually happening?

span-method will be triggered

@island205 island205 self-assigned this Jul 5, 2019
@island205 island205 added this to the 2.11.0 milestone Jul 5, 2019
@island205
Copy link
Contributor

island205 commented Jul 8, 2019

span-method is called by table-body's render function when data changing, so it should be used as stateless at present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants