payload: {"action":"created","issue":{"url":"https://api.github.com/repos/craftcms/cms/issues/4439","repository_url":"https://api.github.com/repos/craftcms/cms","labels_url":"https://api.github.com/repos/craftcms/cms/issues/4439/labels{/name}","comments_url":"https://api.github.com/repos/craftcms/cms/issues/4439/comments","events_url":"https://api.github.com/repos/craftcms/cms/issues/4439/events","html_url":"https://github.com/craftcms/cms/issues/4439","id":459635997,"node_id":"MDU6SXNzdWU0NTk2MzU5OTc=","number":4439,"title":"[3.2] Ctrl-s save unreliable, beginning in previews","user":{"login":"narration-sd","id":247945,"node_id":"MDQ6VXNlcjI0Nzk0NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/247945?v=4","gravatar_id":"","url":"https://api.github.com/users/narration-sd","html_url":"https://github.com/narration-sd","followers_url":"https://api.github.com/users/narration-sd/followers","following_url":"https://api.github.com/users/narration-sd/following{/other_user}","gists_url":"https://api.github.com/users/narration-sd/gists{/gist_id}","starred_url":"https://api.github.com/users/narration-sd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narration-sd/subscriptions","organizations_url":"https://api.github.com/users/narration-sd/orgs","repos_url":"https://api.github.com/users/narration-sd/repos","events_url":"https://api.github.com/users/narration-sd/events{/privacy}","received_events_url":"https://api.github.com/users/narration-sd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-06-24T00:25:13Z","updated_at":"2019-06-24T17:18:57Z","closed_at":"2019-06-24T11:41:06Z","author_association":"CONTRIBUTOR","body":"### Description\r\nThis looks likely related to #4397, but no Categories are involved, just simple text fields.\r\n\r\n- there are a number of aspects apparent, and after losing a full description in edit, you'll get the much abbreviated version. It all does look like some event/race/state involvement, hence the number of ways problems actually can show.\r\n- because of this, to be confident of seeing the problems, each time please start by fully refreshing the browser on the Entry Edit main page. As things change after exercise, and I've even seen the alerts and related problems disappear then...\r\n- the most evident issue: Ctrl-S from a preview puts up an alert/dialog, 'Leave site? Changes you made may not be saved.' .  In fact, if you agree, changes will be saved, Updated in 3.2 parlance, and you'll end up as expected in the main Entry editor.\r\n- but - if you cancel, now previews no longer update on typing (no refresh occurs). And if you then Close Preview, you see your typing, but the Update Entry button isn't lit, and it won't light with further typing either.\r\n\r\nThis should be enough to locate what's going on, but be assured there are a number of related faults that can occur with various pathways exercised around this, especially after first fail.\r\n\r\nTo be clear, I'm testing this time with _no_ browser plugins, and seeing nearly identical issues on both Firefox latest non-dev release, and Chrome, this admittedly Canary. At the moment server is in a Vagrant box on the same i7 laptop as browser, and I have seen before that overall process/thread interleaving can heighten anything to do with update or event micro-delays.\r\n\r\nRe: prior issue report, I am from time to time seeing the r.shift console report, but not in any sync with the ctrl-S errors, which occur just fine and reliably as stated without r.shift presence.\r\n\r\nThe  one other thing I could mention is that alert -- what it's actually saying ('may lose work??', 'leave _site_?) -- but also whether it should present from previews. I remember we discussed this, and that it appears was a work-around, I think to do with discovering if anything had really been edited. I would truly be very sympathetic to possible difficulties...thought does occur at moment if you couldn't possibly know that by whether or not you sent any preview updates from Garnish-land?\r\n\r\n### Additional info\r\n\r\nPHP version\t7.1.28\r\nOS version\tLinux 4.15.0-47-generic\r\nDatabase driver & version\tMySQL 5.7.25\r\nImage driver & version\tGD 7.1.28\r\nCraft edition & version\tCraft Pro 3.2.0-beta.3\r\nYii version\t2.0.21\r\nTwig version\t2.11.3\r\nGuzzle version\t6.3.3\r\nImagine version\t0.7-dev\r\nPlugins\r\nAsset Rev\t6.0.2\r\nCraftQL\tdev-master\r\nElement API\t2.5.4\r\nLive Vue\tdev-revised-craft-drafts\r\nRedactor\t2.3.3.2\r\n\r\nMay as well have a pic - also showing 3.2/draft preview capability looking pretty ready for integration into release!\r\n\r\n![preview-ctrl-s](https://user-images.githubusercontent.com/247945/59984252-e93ddc80-95dc-11e9-88e5-636d0b3979ce.png)\r\n"},"comment":{"url":"https://api.github.com/repos/craftcms/cms/issues/comments/505101286","html_url":"https://github.com/craftcms/cms/issues/4439#issuecomment-505101286","issue_url":"https://api.github.com/repos/craftcms/cms/issues/4439","id":505101286,"node_id":"MDEyOklzc3VlQ29tbWVudDUwNTEwMTI4Ng==","user":{"login":"brandonkelly","id":47792,"node_id":"MDQ6VXNlcjQ3Nzky","avatar_url":"https://avatars1.githubusercontent.com/u/47792?v=4","gravatar_id":"","url":"https://api.github.com/users/brandonkelly","html_url":"https://github.com/brandonkelly","followers_url":"https://api.github.com/users/brandonkelly/followers","following_url":"https://api.github.com/users/brandonkelly/following{/other_user}","gists_url":"https://api.github.com/users/brandonkelly/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonkelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonkelly/subscriptions","organizations_url":"https://api.github.com/users/brandonkelly/orgs","repos_url":"https://api.github.com/users/brandonkelly/repos","events_url":"https://api.github.com/users/brandonkelly/events{/privacy}","received_events_url":"https://api.github.com/users/brandonkelly/received_events","type":"User","site_admin":false},"created_at":"2019-06-24T17:18:57Z","updated_at":"2019-06-24T17:18:57Z","author_association":"MEMBER","body":"> Vy happy to test it when you get there; just let me know the repo to load.\r\n\r\nTo get the fix early, change your `craftcms/cms` requirement in composer.json to:\r\n\r\n```json\r\n\"require\": {\r\n  \"craftcms/cms\": \"3.2.x-dev#ba4b1b051b9db324708e85306f35f849b7223706 as 3.2.0-beta.3\",\r\n  \"...\": \"...\"\r\n}\r\n```\r\n\r\nThen run `composer update`."}}
other: {"actor":{"display_login":"brandonkelly"}}