Skip to content

Commit

Permalink
fix(initrootchange): recover initchangeroot event
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbobell committed Mar 18, 2016
1 parent 6b4c754 commit 65752c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/runtime/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,11 @@ define(function(require, exports, module) {

textNodes = commitInputText(textNodes);
commitInputNode(node, textNodes);

if (node.type == 'root') {
var rootText = minder.getRoot().getText();
minder.fire('initChangeRoot', {text: rootText});
}
}

function exitInputMode() {
Expand Down

0 comments on commit 65752c2

Please sign in to comment.