Refactoring InputFieldBtnCalendar

This commit is contained in:
Julia Radzhabova 2022-03-04 19:33:09 +03:00
parent 65f1dd6b07
commit 3f9c482002
2 changed files with 8 additions and 7 deletions

View file

@ -456,6 +456,13 @@ define([
}
},
focus: function () {
var me = this;
me.enableKeyEvents && me.monthPicker && _.delay(function() {
me.monthPicker.focus();
}, 10);
},
textJanuary: 'January',
textFebruary: 'February',
textMarch: 'March',

View file

@ -671,16 +671,9 @@ define([
editable: true,
iconCls: 'toolbar__icon btn-datetime',
btnHint: '',
repeatInput: null,
showPwdOnClick: true,
menu: true
},
initialize : function(options) {
options = options || {};
Common.UI.InputField.prototype.initialize.call(this, options);
},
render: function (parentEl) {
var me = this;
Common.UI.InputFieldBtn.prototype.render.call(this, parentEl);
@ -708,6 +701,7 @@ define([
});
menu.alignPosition();
}
me.cmpCalendar.focus();
})
},