Skip to content

Commit c7c39be

Browse files
committed
Fixed 'Set image' button from image input not working properly givanz/VvvebJs#368
1 parent 799d919 commit c7c39be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/js/vvvebjs/plugin-media.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ ImageInput = { ...ImageInput, ...{
5555
//Vvveb.MediaModal.mediaPath = window.mediaPath;
5656
}
5757

58-
Vvveb.MediaModal.open(this);
58+
Vvveb.MediaModal.open(this.closest(["data-target-input"]));
5959
},
6060

6161
init: function(data) {

0 commit comments

Comments
 (0)