[FIX] web: tab navigation with phone widgets in form view

This commit ensures that tab navigation works properly when editing a
form view that contains input fields with phone widgets. Previously,
pressing TAB would skip those fields.
This commit is contained in:
Khoi Nguyen
2017-10-16 11:34:39 +02:00
committed by Khoi Nguyen
parent 4f0d6f5ae1
commit bb692c76d4
2 changed files with 28 additions and 1 deletions
@@ -966,7 +966,7 @@ var FieldPhone = FieldEmail.extend({
* @override
*/
getFocusableElement: function () {
if (this._canCall()) {
if (this.mode !== 'readonly' || this._canCall()) {
return this._super.apply(this, arguments);
}
return $();