File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
test/unit/features/directives Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -336,9 +336,9 @@ function processAttrs (el) {
336
336
}
337
337
if ( bindRE . test ( name ) ) { // v-bind
338
338
name = name . replace ( bindRE , '' )
339
- if ( name . charAt ( 0 ) === ':' || ( modifiers && modifiers . prop ) ) {
339
+ if ( modifiers && modifiers . prop ) {
340
340
isProp = true
341
- name = camelize ( name . replace ( bindRE , '' ) )
341
+ name = camelize ( name )
342
342
if ( name === 'innerHtml' ) name = 'innerHTML'
343
343
}
344
344
if ( isProp || platformMustUseProp ( name ) ) {
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ describe('Directive v-bind', () => {
111
111
112
112
it ( 'bind as prop' , ( ) => {
113
113
const vm = new Vue ( {
114
- template : '<div><span v-bind:text-content.prop="foo"></span><span :: inner-html="bar"></span></div>' ,
114
+ template : '<div><span v-bind:text-content.prop="foo"></span><span :inner-html.prop ="bar"></span></div>' ,
115
115
data : {
116
116
foo : 'hello' ,
117
117
bar : '<span>qux</span>'
You can’t perform that action at this time.
0 commit comments