diff options
| author | Géry Debongnie <ged@odoo.com> | 2019-01-31 15:38:52 +0000 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2019-02-04 08:22:34 +0000 |
| commit | 1f5807f1c8a263cf3d5dd8c2dc02dc8219f486d2 (patch) | |
| tree | f62f043946ba52d27a7e0dc12917bd3abf8cd600 /addons/mail/static/tests/discuss_tests.js | |
| parent | dc4e2b92aabe9f80de0ffba79901530b6a3e149e (diff) | |
[FIX] web: allow user to move cursor in search bar
With the control panel refactoring, the auto_complete widget was set on
a different target, which caused issues with the search bar: the event
handlers for the search bar were triggered before the handlers for the
auto_complete widget.
With this commit, we make sure they are handled in the proper order.
Also, a small piece of code that was supposed to check the position of
the cursor was lost.
closes odoo/odoo#30795
Diffstat (limited to 'addons/mail/static/tests/discuss_tests.js')
| -rw-r--r-- | addons/mail/static/tests/discuss_tests.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/static/tests/discuss_tests.js b/addons/mail/static/tests/discuss_tests.js index 5f903898255..2479f417f92 100644 --- a/addons/mail/static/tests/discuss_tests.js +++ b/addons/mail/static/tests/discuss_tests.js @@ -179,7 +179,7 @@ QUnit.test('searchview filter messages', function (assert) { // interact with searchview so that there is only once message $('.o_searchview_input').val("ab").trigger('keyup'); - $('.o_searchview_input_container').trigger($.Event('keydown', { which: $.ui.keyCode.ENTER })); + $('.o_searchview_input').trigger($.Event('keydown', { which: $.ui.keyCode.ENTER })); assert.strictEqual($('.o_searchview_facet').length, 1, "the searchview should have a facet"); @@ -191,7 +191,7 @@ QUnit.test('searchview filter messages', function (assert) { // interact with search view so that there are no matching messages testUtils.dom.click($('.o_facet_remove')); $('.o_searchview_input').val("abcd").trigger('keyup'); - $('.o_searchview_input_container').trigger($.Event('keydown', { which: $.ui.keyCode.ENTER })); + $('.o_searchview_input').trigger($.Event('keydown', { which: $.ui.keyCode.ENTER })); assert.strictEqual($('.o_searchview_facet').length, 1, "the searchview should have a facet"); |
