Skip to content

Commit

Permalink
Merge pull request #7293 from addeeandra/fix/editor-losing-focus-in-t…
Browse files Browse the repository at this point in the history
…ab-panel

Fixed #7211 - editor losing focus in Tab Panel and fix default value not set properly
  • Loading branch information
tugcekucukoglu authored Feb 21, 2025
2 parents a0ebfc6 + 2e1442a commit 9501f36
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/primevue/src/editor/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,12 @@ export default {
methods: {
renderValue(value) {
if (this.quill) {
if (value) this.quill.clipboard.convert({ html: value });
else this.quill.setText('');
if (value) {
const delta = this.quill.clipboard.convert({ html: value });
this.quill.setContents(delta);
} else {
this.quill.setText('');
}
}
},
initQuill() {
Expand Down

0 comments on commit 9501f36

Please sign in to comment.