Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Keep v-model listener order #31

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

Merged
merged 1 commit into from
Dec 23, 2018
Merged

Conversation

nickmessing
Copy link
Member

Fix #30

Copy link
Member

@haoqunjiang haoqunjiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The functionality is working as intended.
But it would be better to add a test case for #30 to avoid future regressions.

@nickmessing
Copy link
Member Author

@sodatea, technically snapshot test changes are already doing this, if there will be any order change it will affect this PR's snapshot test changes.

@haoqunjiang
Copy link
Member

haoqunjiang commented Dec 22, 2018

The original snapshot tests aren't complete, though.
Just realized it's not a complete fix when I tested it locally.
It only fixes cases where on-input comes after v-model but not those comes before, while in template compiler the ordering never affects the output.

https://template-explorer.vuejs.org/#%3Cinput%20%40input%3D%22this.someMethod%22%20v-model%3D%22this.model%22%20%20%2F%3E

@nickmessing nickmessing force-pushed the fix/keep-v-model-listener-order branch from c8691d9 to 0604214 Compare December 23, 2018 05:14
@nickmessing
Copy link
Member Author

@sodatea, updated

@nickmessing nickmessing merged commit e59856a into dev Dec 23, 2018
@nickmessing nickmessing deleted the fix/keep-v-model-listener-order branch December 23, 2018 19:17
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

Successfully merging this pull request may close these issues.

2 participants