Skip to content

Commit 513037d

Browse files
committed
Fix event name (image:uploaded)
1 parent 40cfe44 commit 513037d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dist/js/field.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mix-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"/js/field.js": "/js/field.js?id=d7f5ebcae8e7d7b142c97b72844d51fd"
2+
"/js/field.js": "/js/field.js?id=f8a31dff3bb6ddd67f06f23de2ecb78b"
33
}

resources/js/components/FormField.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
/** @see https://docs.unlayer.com/docs/events */
6464
window.unlayer.addEventListener('design:loaded', this.handleDesignLoaded);
6565
window.unlayer.addEventListener('design:updated', this.handleDesignUpdated);
66-
window.unlayer.addEventListener('onImageUpload', this.handleImageUploaded);
66+
window.unlayer.addEventListener('image:uploaded', this.handleImageUploaded);
6767
6868
this.loadPlugins(this.field.plugins);
6969
},
@@ -183,7 +183,7 @@
183183
},
184184
185185
/**
186-
* @param {Object} imageData
186+
* @param {{image:string, url:string, width:int, height:int}} imageData
187187
*/
188188
handleImageUploaded(imageData) {
189189
Nova.$emit('unlayer:image:uploaded', {

0 commit comments

Comments
 (0)