diff options
| author | Xavier Morel <xmo@odoo.com> | 2015-09-14 10:13:15 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2015-09-14 10:20:30 +0200 |
| commit | 2a43803d8af6111545342028a8bd1f5771d47006 (patch) | |
| tree | ebfd6052c8e92fdd276a2f3a5873de9441998fd6 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 9882c8826edcf2f36608a18fc7c85f89da856837 (diff) | |
[FIX] web_kanban: column & item quick-creation
In all browsers the ``focus/blur`` event is triggered before a button's
``click`` (it's actually triggered by mousedown).
Column and record quick-creates discard the form on blur but still want
to create the column/record when the "Add" button is clicked. This was
implementing with a fixed debounce/time-delay on the blur handler,
however the exact delay between blur and click dispatch are browser,
environment and possibly load-dependent (on my system unloaded, 10ms is
sufficient in webkit but firefox requires at least 50, a user keeping
the mouse button pressed for some time would increase that delay).
The proper way to handle this is to suppress the ``focus/blur`` event
from the relevant button entirely by preventing the browser's default
mousedown handler.
Do that for both column and record quick-creates, and remove
time-delay/debounces.
Also remove manual proxying of ``click`` in kanban column (move to
``events`` object)
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
