-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
fix(v-model): v-model ended with spaces #7735
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
Changes from 1 commit
afddbb9
47afa07
065496a
1d09bec
8bf451e
f361b31
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,16 @@ describe('Directive v-model text', () => { | |
}).then(done) | ||
}) | ||
|
||
it('should not create a new property ended with spaces when', () => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you add a test that fails without the fix above please? This one passes There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did not understand the part of the test. Do I create another pull request with only the test? Because the current test fails without this fix |
||
const vm = new Vue({ | ||
data: { | ||
test: 'b' | ||
}, | ||
template: '<input v-model="test ">' | ||
}).$mount() | ||
expect(vm['test ']).toBe(undefined) | ||
}) | ||
|
||
it('.lazy modifier', () => { | ||
const vm = new Vue({ | ||
data: { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be above the previous line 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's true, I fixed this in the last commit