diff options
| author | Alon Levy <alon@pobox.com> | 2015-02-11 18:46:56 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-02-11 18:46:56 +0200 |
| commit | 6e4bf6f1324d007fd2ba18f52fa051b13b566774 (patch) | |
| tree | 5427ff126572877c7e1c3c0aa4c51a8278461f64 /src | |
| parent | ea114213ff78e28980c57f01d8d335239bb3f718 (diff) | |
client/textanalysis: on input element click stop handling after completer handler
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/textanalysis.ui.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/textanalysis.ui.js b/src/client/textanalysis.ui.js index f66a3a99..72ca0429 100644 --- a/src/client/textanalysis.ui.js +++ b/src/client/textanalysis.ui.js @@ -176,8 +176,10 @@ return { document_keydown.push({where: consts.KEYSTROKE_WHERE_TEXTANALYSIS, keys: [e.keyCode]}); return ret; }); - element.bind('input selectionchange click', function() { + element.bind('input selectionchange click', function(e) { analysisCompleter.oninput(element_raw.value, element_raw.selectionStart); + e.stopPropagation(); + e.preventDefault(); }); function submitNewSentence() { |
