Files
odoo_source/addons/web/static/tests/core
Mathieu Duckerts-Antoine 4308de6aab [REF] web: useAutofocus simplified API
We bring two changes to the API of useAutofocus:
    - it takes no parameter, the element focused is the one that is the
      target of a t-ref="autofocus".
    - it returns the element reference instead of a function to call if
      one wants to force the focus on a next patch.

Indeed, having access to the element reference makes it easy to focus
that element but also allow to remove an eventual useRef that would
target the same element. This in turn permits the use of t-ref="autofocus"
alone.

closes odoo/odoo#84306

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2022-02-11 11:40:12 +00:00
..
2022-02-10 07:46:12 +00:00
2022-02-10 07:46:12 +00:00
2022-02-10 07:46:12 +00:00
2022-02-10 07:46:12 +00:00
2022-02-10 07:46:12 +00:00
2022-02-10 07:46:12 +00:00
2022-02-10 07:46:12 +00:00
2022-02-10 07:46:12 +00:00
2022-02-10 07:46:12 +00:00
2022-02-10 07:46:12 +00:00
2022-02-10 07:46:12 +00:00