From 04289653fd1e78f7bded95742f1c070581e50c9c Mon Sep 17 00:00:00 2001 From: Alan Date: Fri, 17 Nov 2023 12:49:23 +0800 Subject: [PATCH] fix #7905 - time picker onblur issue --- docs/json/roodata.json | 43 +++++++++++++++++++ docs/src/Roo_bootstrap_form_ComboBox.js.html | 8 +++- docs/src/Roo_bootstrap_form_DateField.js.html | 2 + docs/src/Roo_bootstrap_form_Input.js.html | 2 +- docs/src/Roo_bootstrap_form_TimeField.js.html | 2 + docs/tree.json | 5 +++ 6 files changed, 59 insertions(+), 3 deletions(-) diff --git a/docs/json/roodata.json b/docs/json/roodata.json index 92fbbe73a8..a1fc1015b1 100644 --- a/docs/json/roodata.json +++ b/docs/json/roodata.json @@ -146943,6 +146943,49 @@ "tree_children" : [], "tree_parent" : [] }, + "Roo.bootstrap.form.MultiLineTag" : { + "props" : [], + "events" : [ + { + "name" : "beforeload", + "type" : "function", + "desc" : "Fires before a request is made for a new data object. If the beforeload handler returns false\nthe load action will be canceled.", + "sig" : "function (_self, store, options)\n{\n\n}", + "memberOf" : "", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "this", + "type" : "Roo.boostrap.form.MultiLineTag", + "desc" : "", + "isOptional" : false + }, + { + "name" : "store", + "type" : "Store", + "desc" : "", + "isOptional" : false + }, + { + "name" : "options", + "type" : "Object", + "desc" : "The loading options that were specified (see {@link #load} for details)", + "isOptional" : false + } + ], + "returns" : [] + } + ], + "methods" : [], + "isAbstract" : false, + "isBuilderTop" : false, + "implementations" : [], + "tree_children" : [], + "tree_parent" : [] + }, "Roo.bootstrap.form.NumberField" : { "props" : [ { diff --git a/docs/src/Roo_bootstrap_form_ComboBox.js.html b/docs/src/Roo_bootstrap_form_ComboBox.js.html index 750a57106b..e490b95985 100644 --- a/docs/src/Roo_bootstrap_form_ComboBox.js.html +++ b/docs/src/Roo_bootstrap_form_ComboBox.js.html @@ -195,8 +195,8 @@ /** * @cfg {Number} maxHeight The maximum height in pixels of the dropdown list before scrollbars are shown (defaults to 300) */ - maxHeight: 300, - /** + // maxHeight: 300, // not used (change maxHeight in CSS. target the list using listClass) + /** * @cfg {String} triggerAction The action to execute when the trigger field is activated. Use 'all' to run the * query specified by the allQuery config option (defaults to 'query') */ @@ -721,6 +721,8 @@ // shadow: this.shadow, cls: [cls, this.listClass].join(' '), constrain:false //}); + this.list.addClass(this.listClass); + var _this = this; (function(){ @@ -1827,6 +1829,8 @@ Roo.get(document).on('keydown', this.listKeyPress, this); } + this.list.setStyle('maxHeight', 'calc(100% - ' + this.list.getTop() + 'px - 50px)'); + this.fireEvent('expand', this); }, diff --git a/docs/src/Roo_bootstrap_form_DateField.js.html b/docs/src/Roo_bootstrap_form_DateField.js.html index 105f19a4c7..aad13efa53 100644 --- a/docs/src/Roo_bootstrap_form_DateField.js.html +++ b/docs/src/Roo_bootstrap_form_DateField.js.html @@ -579,6 +579,8 @@ this.viewMode = this.startViewMode; this.showMode(); + this.inputEl().blur(); + this.fireEvent('hidepopup', this, this.date); }, diff --git a/docs/src/Roo_bootstrap_form_Input.js.html b/docs/src/Roo_bootstrap_form_Input.js.html index 4992006f82..19a9645a83 100644 --- a/docs/src/Roo_bootstrap_form_Input.js.html +++ b/docs/src/Roo_bootstrap_form_Input.js.html @@ -929,7 +929,7 @@ } - this.el.removeClass([this.invalidClass, 'is-invalid']); + this.inputEl().removeClass([this.invalidClass, 'is-invalid']); if(this.hasFeedback && this.inputType != 'hidden'){ diff --git a/docs/src/Roo_bootstrap_form_TimeField.js.html b/docs/src/Roo_bootstrap_form_TimeField.js.html index 0fc421bd81..ad680e0b26 100644 --- a/docs/src/Roo_bootstrap_form_TimeField.js.html +++ b/docs/src/Roo_bootstrap_form_TimeField.js.html @@ -412,6 +412,8 @@ this.picker().hide(); this.pop.hide(); + this.inputEl().blur(); + this.fireEvent('hide', this, this.time); }, diff --git a/docs/tree.json b/docs/tree.json index 6eb560fd7c..5470f4fa62 100644 --- a/docs/tree.json +++ b/docs/tree.json @@ -737,6 +737,11 @@ "cn" : [], "is_class" : true }, + { + "name" : "Roo.bootstrap.form.MultiLineTag", + "cn" : [], + "is_class" : true + }, { "name" : "Roo.bootstrap.form.NumberField", "cn" : [], -- 2.39.2