summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorJulien Mougenot <jum@odoo.com>2020-08-18 12:06:59 +0000
committerJulien Mougenot <jum@odoo.com>2020-08-18 13:49:02 +0000
commitef731cc1c915360bd87388507b6591044a8ad88c (patch)
treea98010c7945919d21c169af7c4ba4ed299bc33a5 /addons/web/static/src/js/views/basic/basic_controller.js
parent69869ab681e2271ae802ca3ab7285ee83580208d (diff)
[IMP] crm,web_tour: Improve CRM tour keynav
Two things have been introduced in this commit: The first is a change in the way the tour tip widgets are updated when a DOM mutation is triggered: before this commit, each active tip would evaluate its current anchor to elements matching its "trigger" selector. If the element was not the anchor, it was set as the new anchor and would be bound to the tip event handlers. Now, the unbinding/rebinding of event handlers is done regardless of the new element. This is helpful when the anchor is on a field monetary for example, which keeps the same input element while internally unbinding and rebinding the widget event listeners to it on each rendering. This process does not include external event listeners such as those of the tip and they were lost until now, breaking the tour step. The second change is a modification of the CRM tour: the "Expected revenue" field being an input, the according step trigger has been set to target the input element instead of its parent. This means that the step will await an "input" event instead of a click to be consumed, making the tour step feasible with a keyboard. Task: 2314864 Co-authored-by: Aaron Bohy <aab@odoo.com> Co-authored-by: Julien Mougenot <jum@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions