[MERGE] forward port branch 12.0 up to 2830b93a3a

This commit is contained in:
Christophe Simonis
2019-04-17 19:47:37 +02:00
58 changed files with 1745 additions and 176 deletions
@@ -805,7 +805,7 @@ var FieldBoolean = AbstractField.extend({
* @returns {jQuery} the focusable checkbox input
*/
getFocusableElement: function () {
return this.$input || $();
return this.mode === 'readonly' ? $() : this.$input;
},
/**
* A boolean field is always set since false is a valid value.