fix loading editor in iframe on ie9
This commit is contained in:
parent
8551e0e043
commit
59de8b0ff4
1 changed files with 3 additions and 1 deletions
|
|
@ -63,7 +63,9 @@ var TextInput = function(parentNode, host) {
|
||||||
var isSelectionEmpty = true;
|
var isSelectionEmpty = true;
|
||||||
|
|
||||||
// FOCUS
|
// FOCUS
|
||||||
var isFocused = document.activeElement === text;
|
// ie9 throws error if document.activeElement is accessed too soon
|
||||||
|
try { var isFocused = document.activeElement === text; } catch(e) {}
|
||||||
|
|
||||||
event.addListener(text, "blur", function() {
|
event.addListener(text, "blur", function() {
|
||||||
host.onBlur();
|
host.onBlur();
|
||||||
isFocused = false;
|
isFocused = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue