Adds check for isTextInput (#4262)

Necessary for developers using custom elements
This commit is contained in:
alschmiedt
2020-09-10 09:07:46 -07:00
committed by GitHub
parent 47cc3b97b0
commit 897296dce8

View File

@@ -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');
};
/**