diff --git a/closure/goog/editor/plugins/linkdialogplugin.js b/closure/goog/editor/plugins/linkdialogplugin.js
index <HASH>..<HASH> 100644
--- a/closure/goog/editor/plugins/linkdialogplugin.js
+++ b/closure/goog/editor/plugins/linkdialogplugin.js
@@ -332,15 +332,14 @@ goog.editor.plugins.LinkDialogPlugin.prototype.handleOk = function(e) {
     this.touchUpAnchorOnOk_(extraAnchors[i], e);
   }
 
-  // Place cursor to the right of the modified link, and immediately dispatch a
-  // selectionChange event.
+  // Place cursor to the right of the modified link.
   this.currentLink_.placeCursorRightOf();
-  this.getFieldObject().dispatchSelectionChangeEvent();
-
-  this.getFieldObject().dispatchChange();
 
   this.getFieldObject().focus();
 
+  this.getFieldObject().dispatchSelectionChangeEvent();
+  this.getFieldObject().dispatchChange();
+
   this.eventHandler_.removeAll();
 };
Automated g4 rollback

*** Reason for rollback ***

Didn't help fix

*** Original change description ***

Have LinkDialogPlugin fire selectionChange event immediately after moving cursor by moving the focus call to after the dispatch call (as well as after the change event dispatch call)

***
-------------
Created by MOE: <URL>