mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
Adds check for isTextInput (#4262)
Necessary for developers using custom elements
This commit is contained in:
@@ -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');
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user