@kigi/components 1.10.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kigi/components",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "description": "@kigi/components",
5
5
  "main": "src/components/index.ts",
6
6
  "scripts": {
@@ -597,10 +597,13 @@ class MbgSelectController {
597
597
  }
598
598
 
599
599
  checkFavorite() {
600
- const favorite = MbgCookie.get(this.getFavoriteKey())
601
- if (favorite && this.enableFavorite && !this.ngModel) {
602
- this.selectOption(favorite)
603
- }
600
+ let favorite
601
+ this.$timeout(() => {
602
+ favorite = MbgCookie.get(this.getFavoriteKey())
603
+ if (favorite && this.enableFavorite && !this.ngModel) {
604
+ this.selectOption(favorite)
605
+ }
606
+ }, 300)
604
607
  }
605
608
 
606
609
  favorite(evt, item) {