diff options
| author | Christophe Monniez <moc@odoo.com> | 2019-03-21 14:16:39 +0000 |
|---|---|---|
| committer | Christophe Monniez <moc@odoo.com> | 2019-03-22 10:28:15 +0000 |
| commit | 39e71353c5d58f7af6b3270911a24d98b73cad4e (patch) | |
| tree | 6a337fc6f2e8883fb0d5b1c709d07cd5f109588e /addons/mail/static/src/js/thread_widget.js | |
| parent | 3a56e34169288a001f3ff5ab5bc89548185f4baf (diff) | |
[FIX] web: focus on close button when before closing a modal
During the clickEverywhere test, when a modal is opened, the hide method
is called to bypass it. This is not realistic and does not work in some
cases.
For example in Point of sale, menu "Reporting/Sales Details", a modal is
opened with a DateTimePicker (tempus dominus) already opened.
When hiding or closing the modal, the DateTimePicker needs to perform
some cleanup. If the modal is simply hidden, the DateTimePicker is not
cleanly destroyed.
With this commit, a modal is closed by clicking on its close button and
before that, the focus is set on the close button to let the
datepicker widget do its stuff on losing focus.
Also, a more realistic click is done by trigerring more events (code
adapted from tour helper).
closes odoo/odoo#32038
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
Diffstat (limited to 'addons/mail/static/src/js/thread_widget.js')
0 files changed, 0 insertions, 0 deletions
