From c76f7a351cd925d4f4c373a925dba5cea5ddf6ab Mon Sep 17 00:00:00 2001 From: rakeshSgr Date: Mon, 28 Jun 2021 14:42:25 +0530 Subject: [PATCH 1/2] issue #SB-25328 fix: dropdown loading issue --- dist/modules/select/classes/select-base.js | 9 ++++++--- src/modules/select/classes/select-base.ts | 6 +++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/dist/modules/select/classes/select-base.js b/dist/modules/select/classes/select-base.js index 9a1435a65..891897d79 100644 --- a/dist/modules/select/classes/select-base.js +++ b/dist/modules/select/classes/select-base.js @@ -282,10 +282,13 @@ var SuiSelectBase = /** @class */ (function () { this._renderedSubscriptions.forEach(function (rs) { return rs.unsubscribe(); }); this._renderedSubscriptions = []; this._renderedOptions.forEach(function (ro) { - // Slightly delay initialisation to avoid change after checked errors. TODO - look into avoiding this! - setTimeout(function () { return _this.initialiseRenderedOption(ro); }); + _this._renderedSubscriptions.push(ro.onSelected.subscribe(function () { return _this.selectOption(ro.value); })); }); + + // Slightly delay initialisation to avoid change after checked errors. TODO - look into avoiding this! + setTimeout(() => _this._renderedOptions.forEach(ro => _this.initialiseRenderedOption(ro))); + // If no options have been provided, autogenerate them from the rendered ones. if (this.searchService.options.length === 0 && !this.searchService.optionsLookup) { this.options = this._renderedOptions.map(function (ro) { return ro.value; }); @@ -411,4 +414,4 @@ var SuiSelectBase = /** @class */ (function () { return SuiSelectBase; }()); export { SuiSelectBase }; -//# sourceMappingURL=select-base.js.map \ No newline at end of file +//# sourceMappingURL=select-base.js.map diff --git a/src/modules/select/classes/select-base.ts b/src/modules/select/classes/select-base.ts index 335a425f4..f0cf5772d 100644 --- a/src/modules/select/classes/select-base.ts +++ b/src/modules/select/classes/select-base.ts @@ -303,12 +303,12 @@ export abstract class SuiSelectBase implements AfterContentInit, OnDestroy this._renderedSubscriptions = []; this._renderedOptions.forEach(ro => { - // Slightly delay initialisation to avoid change after checked errors. TODO - look into avoiding this! - setTimeout(() => this.initialiseRenderedOption(ro)); - this._renderedSubscriptions.push(ro.onSelected.subscribe(() => this.selectOption(ro.value))); }); + // Slightly delay initialisation to avoid change after checked errors. TODO - look into avoiding this! + setTimeout(() => this._renderedOptions.forEach(ro => this.initialiseRenderedOption(ro))); + // If no options have been provided, autogenerate them from the rendered ones. if (this.searchService.options.length === 0 && !this.searchService.optionsLookup) { this.options = this._renderedOptions.map(ro => ro.value); From 72b2f8a7e1df96fabb52b5e23d93daf0208f2321 Mon Sep 17 00:00:00 2001 From: rakeshSgr Date: Fri, 9 Jul 2021 11:39:21 +0530 Subject: [PATCH 2/2] issue #SB-25328 fix: version update --- src/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/package.json b/src/package.json index 42af48014..f085a5e50 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "ng2-semantic-ui", - "version": "0.10.0-alpha.6", + "version": "0.0.4", "description": "Angular Semantic UI Components", "repository": { "type": "git",