[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 13:05:19 +02:00
committed by Khoi Nguyen
parent b6c3ee4e24
commit 8191d6d72e
2 changed files with 28 additions and 1 deletions
@@ -924,7 +924,7 @@ var FieldPhone = FieldEmail.extend({
* @override
*/
getFocusableElement: function () {
if (this._canCall()) {
if (this.mode !== 'readonly' || this._canCall()) {
return this._super.apply(this, arguments);
}
return $();