Skip to content

Commit

Permalink
Missed vue3 emit from input -> update:modelValue, which caused so…
Browse files Browse the repository at this point in the history
…me issues when copying and pasting and not triggering an update
  • Loading branch information
chrispelzer committed Jul 18, 2022
1 parent 011ef5e commit 19ee975
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "waynestate/nova-ckeditor4-field",
"version": "1.0.0",
"version": "1.0.1",
"description": "This nova package allows you to use CKEditor 4 for text areas.",
"keywords": [
"laravel",
Expand Down
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions resources/js/components/CKEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,7 @@ export default {
// Locking the snapshot prevents the 'change' event.
// Trigger it manually to update the bound data.
if ( data !== newData ) {
this.$once( 'input', () => {
this.$emit( 'ready', this.instance );
} );

this.$emit( 'input', newData );
this.$emit( 'update:modelValue', newData );
} else {
this.$emit( 'ready', this.instance );
}
Expand Down

0 comments on commit 19ee975

Please sign in to comment.