Having a "Remove" submit button makes impossible to submit the form unless scrolling down and directly clicking on "Save" submit button

Pressing enter having focus on any textfield or whatever other form control would lead to the uploaded image being removed and the form posted through the "Remove" submit button instead of the "Save" button.

This results in required images not being posted ever or non-required images being removed and then posted.

IMHO I thing the "Remove" option should be a link instead of a submit button (don't know if '#type' => 'button' could help, but once tried that hack, having a '#submit' value seems to force it into a submit button anyway)

Comments

arhak’s picture

Assigned: Unassigned » arhak
Status: Active » Closed (won't fix)

it has to be the way it is..