When using custom Edit Frame buttons to edit some item fields in Experience Editor, you may encounter a problem that the changes are saved to the wrong language version of the item.

For example, when using the Field Editor button the changes made to the fields in the Field Editor popup might be saved to the item version of UI language instead of content language selected in Experience Editor ribbon.

This happens due to an issue with passing query string parameters to Sitecore when saving field changes.