From 897296dce88be8b469e9104f897c6e2f44ea6922 Mon Sep 17 00:00:00 2001 From: alschmiedt Date: Thu, 10 Sep 2020 09:07:46 -0700 Subject: [PATCH] Adds check for isTextInput (#4262) Necessary for developers using custom elements --- core/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/utils.js b/core/utils.js index fa7e42698..25d4a58ab 100644 --- a/core/utils.js +++ b/core/utils.js @@ -49,7 +49,8 @@ Blockly.utils.isTargetInput = function(e) { e.target.type == 'number' || e.target.type == 'email' || e.target.type == 'password' || e.target.type == 'search' || e.target.type == 'tel' || e.target.type == 'url' || - e.target.isContentEditable; + e.target.isContentEditable || + (e.target.dataset && e.target.dataset.isTextInput == 'true'); }; /**