editing element then clicking 'cancel' now operates correctly