From efd55e5d4fee5c1089aba52fe6b45bbc70dce526 Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Mon, 21 May 2018 15:12:09 -0700 Subject: [PATCH] Disable ws comments in IE --- core/contextmenu.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/contextmenu.js b/core/contextmenu.js index 75a0afa3c..657556645 100644 --- a/core/contextmenu.js +++ b/core/contextmenu.js @@ -388,7 +388,11 @@ Blockly.ContextMenu.workspaceCommentOption = function(ws, e) { } }; - var wsCommentOption = {enabled: true}; + var wsCommentOption = { + // Foreign objects don't work in IE. Don't let the user create comments + // that they won't be able to edit. + enabled: !goog.userAgent.IE + }; wsCommentOption.text = Blockly.Msg.ADD_COMMENT; wsCommentOption.callback = function() { addWsComment();