ellatrix / wp-front-end-editor

Front-end Editor for WordPress
https://wordpress.org/plugins/wp-front-end-editor/
340 stars 87 forks source link

Featured Image: missing a "event.preventDefault" #167

Closed affonso closed 9 years ago

affonso commented 9 years ago

The propagation of the click event don't permits the execution of operations with the post's Featured Image (add, edit, or remove operations).

Changed wp-front-end-editor/js/fee.js at line 850:

$thumbnailEdit.on( 'click.fee-edit-thumbnail', function() {

to:

$thumbnailEdit.on( 'click.fee-edit-thumbnail', function(event) {
    event.preventDefault();

Changed in the same way in ~ line 855 too, at "$thumbnailRemove.on".

And now it is working in all themes I've tested.

ellatrix commented 9 years ago

Thanks for noticing! :)

ellatrix commented 9 years ago

What themes have you tested? I don't see what the problem is actually, because the element being clicked is not a link but a div.