Skip to content

Commit 11b3572

Browse files
committed
Invoke change event on wpsa-url input
External js might listen to change event of the input field. Signed-off-by: Roi Dayan <[email protected]>
1 parent 88d5964 commit 11b3572

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/class.settings-api.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -594,8 +594,7 @@ function(){
594594

595595
file_frame.on('select', function () {
596596
attachment = file_frame.state().get('selection').first().toJSON();
597-
598-
self.prev('.wpsa-url').val(attachment.url);
597+
self.prev('.wpsa-url').val(attachment.url).change();
599598
});
600599

601600
// Finally, open the modal

0 commit comments

Comments
 (0)