Skip to content

Commit

Permalink
Fixed duplicate attributes in Vue components. Fixes #1021
Browse files Browse the repository at this point in the history
  • Loading branch information
tidyui committed Feb 3, 2020
1 parent e837f34 commit dfadad1
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions core/Piranha.Manager/assets/dist/js/piranha.contentedit.js
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ Vue.component("html-column-block", {
piranha.editor.remove(this.uid + 2);
},
template:
"<div class='block-body' class='row'>" +
"<div class='row block-body'>" +
" <div class='col-md-6'>" +
" <div :class='{ empty: isEmpty1 }'>" +
" <div :id='uid + 1' contenteditable='true' spellcheck='false' v-html='column1' v-on:blur='onBlurCol1'></div>" +
Expand Down Expand Up @@ -810,7 +810,7 @@ Vue.component("quote-block", {
template:
"<div class='block-body' :class='{ empty: isEmpty }'>" +
" <i class='fas fa-quote-right quote'></i>" +
" <p class='lead' contenteditable='true' spellcheck='false' v-html='model.body.value' v-on:blur='onBlur'></pre>" +
" <p class='lead' contenteditable='true' spellcheck='false' v-html='model.body.value' v-on:blur='onBlur'></p>" +
"</div>"
});

Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/Piranha.Manager/assets/dist/js/piranha.js
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ Vue.component("page-item", {
" {{ item.typeName }}" +
" </div>" +
" </div>" +
" <ol class='dd-list' v-if='item.items.length > 0' class='dd-list'>" +
" <ol class='dd-list' v-if='item.items.length > 0'>" +
" <page-item v-for='child in item.items' v-bind:key='child.id' v-bind:item='child'>" +
" </page-item>" +
" </ol>" +
Expand Down
2 changes: 1 addition & 1 deletion core/Piranha.Manager/assets/dist/js/piranha.min.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Vue.component("html-column-block", {
piranha.editor.remove(this.uid + 2);
},
template:
"<div class='block-body' class='row'>" +
"<div class='row block-body'>" +
" <div class='col-md-6'>" +
" <div :class='{ empty: isEmpty1 }'>" +
" <div :id='uid + 1' contenteditable='true' spellcheck='false' v-html='column1' v-on:blur='onBlurCol1'></div>" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ Vue.component("quote-block", {
template:
"<div class='block-body' :class='{ empty: isEmpty }'>" +
" <i class='fas fa-quote-right quote'></i>" +
" <p class='lead' contenteditable='true' spellcheck='false' v-html='model.body.value' v-on:blur='onBlur'></pre>" +
" <p class='lead' contenteditable='true' spellcheck='false' v-html='model.body.value' v-on:blur='onBlur'></p>" +
"</div>"
});
2 changes: 1 addition & 1 deletion core/Piranha.Manager/assets/src/js/components/page-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Vue.component("page-item", {
" {{ item.typeName }}" +
" </div>" +
" </div>" +
" <ol class='dd-list' v-if='item.items.length > 0' class='dd-list'>" +
" <ol class='dd-list' v-if='item.items.length > 0'>" +
" <page-item v-for='child in item.items' v-bind:key='child.id' v-bind:item='child'>" +
" </page-item>" +
" </ol>" +
Expand Down

0 comments on commit dfadad1

Please sign in to comment.