File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
test/unit/features/directives Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -414,6 +414,7 @@ function processAttrs (el) {
414414 if ( bindRE . test ( name ) ) { // v-bind
415415 name = name . replace ( bindRE , '' )
416416 value = parseFilters ( value )
417+ isProp = false
417418 if ( modifiers ) {
418419 if ( modifiers . prop ) {
419420 isProp = true
Original file line number Diff line number Diff line change @@ -121,6 +121,18 @@ describe('Directive v-bind', () => {
121121 expect ( vm . $el . children [ 1 ] . innerHTML ) . toBe ( '<span>qux</span>' )
122122 } )
123123
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+
124136 it ( '.camel modifier' , ( ) => {
125137 const vm = new Vue ( {
126138 template : '<svg :view-box.camel="viewBox"></svg>' ,
You can’t perform that action at this time.
0 commit comments