File tree 2 files changed +13
-0
lines changed
test/unit/features/directives
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -414,6 +414,7 @@ function processAttrs (el) {
414
414
if ( bindRE . test ( name ) ) { // v-bind
415
415
name = name . replace ( bindRE , '' )
416
416
value = parseFilters ( value )
417
+ isProp = false
417
418
if ( modifiers ) {
418
419
if ( modifiers . prop ) {
419
420
isProp = true
Original file line number Diff line number Diff line change @@ -121,6 +121,18 @@ describe('Directive v-bind', () => {
121
121
expect ( vm . $el . children [ 1 ] . innerHTML ) . toBe ( '<span>qux</span>' )
122
122
} )
123
123
124
+ it ( '.prop modifier with normal attribute binding' , ( ) => {
125
+ const vm = new Vue ( {
126
+ template : '<input :some.prop="some" :id="id">' ,
127
+ data : {
128
+ some : 'hello' ,
129
+ id : false
130
+ }
131
+ } ) . $mount ( )
132
+ expect ( vm . $el . some ) . toBe ( 'hello' )
133
+ expect ( vm . $el . getAttribute ( 'id' ) ) . toBe ( null )
134
+ } )
135
+
124
136
it ( '.camel modifier' , ( ) => {
125
137
const vm = new Vue ( {
126
138
template : '<svg :view-box.camel="viewBox"></svg>' ,
You can’t perform that action at this time.
0 commit comments